diff options
| author | Christoph Hellwig <[email protected]> | 2011-08-27 14:42:53 +0000 |
|---|---|---|
| committer | Alex Elder <[email protected]> | 2011-10-11 21:15:01 -0500 |
| commit | c58cb165bd44de8aaee9755a144136ae743be116 (patch) | |
| tree | 47cf60c7555cf49eb76bbc682bd355e726f51df3 /tools/perf/scripts/python/bin | |
| parent | 859f57ca00805e6c482eef1a7ab073097d02c8ca (diff) | |
xfs: avoid direct I/O write vs buffered I/O race
Currently a buffered reader or writer can add pages to the pagecache
while we are waiting for the iolock in xfs_file_dio_aio_write. Prevent
this by re-checking mapping->nrpages after we got the iolock, and if
nessecary upgrade the lock to exclusive mode. To simplify this a bit
only take the ilock inside of xfs_file_aio_write_checks.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions