]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 19 Apr 2012 22:08:27 +0000 (17:08 -0500)
commit2584a09b862d4da3f2a265254f8fb7524cac77ff
tree2757c82c33b643105a8c0b42a12f61b96d6e2a19
parentf4d74bb6c36dfcf3a1fd9805add8f982418e04d5
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