summaryrefslogtreecommitdiffstats
path: root/firmware/whiteheat_loader.HEX
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-08-27 14:42:53 +0000
committerAlex Elder <aelder@sgi.com>2011-10-11 21:15:01 -0500
commitc58cb165bd44de8aaee9755a144136ae743be116 (patch)
tree47cf60c7555cf49eb76bbc682bd355e726f51df3 /firmware/whiteheat_loader.HEX
parent859f57ca00805e6c482eef1a7ab073097d02c8ca (diff)
downloadblackbird-op-linux-c58cb165bd44de8aaee9755a144136ae743be116.tar.gz
blackbird-op-linux-c58cb165bd44de8aaee9755a144136ae743be116.zip
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 <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'firmware/whiteheat_loader.HEX')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud