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)
commit5bf1f26227a59b9634e95eb3c7c012b766e5e6a0
tree940a58e03256bd70787d1341c90027ef334f5fac
parent2813d682e8e6a278f94817429afd46b30875bb6e
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