]> git.baikalelectronics.ru Git - kernel.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)
commit670332b2b8c303e937658e7a6ea49bd0b47c9477
tree23996ee7961fc5595d72c5e149a4250c444356f4
parent26821dbd34da4d80a867d49b6f96aa5d992b06bc
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