]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xfs: unlock the inode before log force in xfs_fsync
authorChristoph Hellwig <hch@infradead.org>
Mon, 19 Sep 2011 14:55:51 +0000 (14:55 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 29 Sep 2011 14:42:30 +0000 (09:42 -0500)
commitb35e4f2d235e0a2aa9fde7899d27552b5e59545e
tree43ef72b7ba7adb58cfd63a2b8539d34fbffd2546
parent0093b1064a18f2e3b6408dda542769076fc7b233
xfs: unlock the inode before log force in xfs_fsync

Only read the LSN we need to push to with the ilock held, and then release
it before we do the log force to improve concurrency.

This also removes the only direct caller of _xfs_trans_commit, thus
allowing it to be merged into the plain xfs_trans_commit again.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_file.c
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.h