]> 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>
Wed, 12 Oct 2011 02:15:08 +0000 (21:15 -0500)
commitb10370585349d364ff3c550afa7922e6e21f029d
tree23996ee7961fc5595d72c5e149a4250c444356f4
parent815cb21662b914e1e14c256a3d662b1352c8509e
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