]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: always return with the iolock held from xfs_file_aio_write_checks
authorChristoph Hellwig <hch@infradead.org>
Sun, 18 Dec 2011 20:00:13 +0000 (20:00 +0000)
committerBen Myers <bpm@sgi.com>
Tue, 17 Jan 2012 21:11:07 +0000 (15:11 -0600)
commit035691d2002aeabf7cc5ff8a0a73b1095df200d4
tree940a58e03256bd70787d1341c90027ef334f5fac
parent5e7ba4de429c5fc5b0b05c572b619ff1ec96b4af
xfs: always return with the iolock held from xfs_file_aio_write_checks

While xfs_iunlock is fine with 0 lockflags the calling conventions are much
cleaner if xfs_file_aio_write_checks never returns without the iolock held.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_file.c