xfs: reduce ilock hold times in xfs_file_aio_write_checks
authorChristoph Hellwig <hch@infradead.org>
Tue, 27 Mar 2012 14:34:47 +0000 (10:34 -0400)
committerBen Myers <bpm@sgi.com>
Mon, 14 May 2012 21:20:17 +0000 (16:20 -0500)
commit467f78992a0743e0e71729e4faa20b67b0f25289
tree2757c82c33b643105a8c0b42a12f61b96d6e2a19
parentb4d05e3019692fc5a8c573fbce60de2d48c5b7a1
xfs: reduce ilock hold times in xfs_file_aio_write_checks

We do not need the ilock for generic_write_checks and the i_size_read,
which are protected by i_mutex and/or iolock, so reduce the ilock
critical section to just the call to xfs_zero_eof.

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