From: Christoph Hellwig Date: Wed, 3 Dec 2008 11:20:28 +0000 (+0100) Subject: reduce l_icloglock roundtrips X-Git-Tag: v2.6.29-rc1~552^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39e2defe73106ca2e1c85e5286038a0a13f49513;p=pandora-kernel.git 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 Reviewed-by: Dave Chinner Signed-off-by: Niv Sardi --- Reading git-diff-tree failed