summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChristoph Hellwig2008-12-03 12:20:28 +0100
committerNiv Sardi2008-12-04 05:39:21 +0100
commit39e2defe73106ca2e1c85e5286038a0a13f49513 (patch)
tree2a2f5c12d92ff8170f8e7f89bda56b1311b51a8d /arch
parentstop using igrab in xfs_vn_link (diff)
downloadkernel-qcow2-linux-39e2defe73106ca2e1c85e5286038a0a13f49513.tar.gz
kernel-qcow2-linux-39e2defe73106ca2e1c85e5286038a0a13f49513.tar.xz
kernel-qcow2-linux-39e2defe73106ca2e1c85e5286038a0a13f49513.zip
reduce l_icloglock roundtrips
All but one caller of xlog_state_want_sync drop and re-acquire l_icloglock around the call to it, just so that xlog_state_want_sync can acquire and drop it. Move all lock operation out of l_icloglock and assert that the lock is held when it is called. Note that it would make sense to extende this scheme to xlog_state_release_iclog, but the locking in there is more complicated and we'd like to keep the atomic_dec_and_lock optmization for those callers not having l_icloglock yet. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com> Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions