]> Git Repo - linux.git/commit
xfs: call xlog_state_release_iclog with l_icloglock held
authorChristoph Hellwig <[email protected]>
Mon, 14 Oct 2019 17:36:41 +0000 (10:36 -0700)
committerDarrick J. Wong <[email protected]>
Mon, 21 Oct 2019 16:04:58 +0000 (09:04 -0700)
commitdf732b29c807640cada8092d76c87e1ed5ce9bba
tree700c903b5bbbe355f2f963ac2bd166a22d25c399
parent390aab0a164052b7bf299dec8af52a80f7c0dcc4
xfs: call xlog_state_release_iclog with l_icloglock held

All but one caller of xlog_state_release_iclog hold l_icloglock and need
to drop and reacquire it to call xlog_state_release_iclog.  Switch the
xlog_state_release_iclog calling conventions to expect the lock to be
held, and open code the logic (using a shared helper) in the only
remaining caller that does not have the lock (and where not holding it
is a nice performance optimization).  Also move the refactored code to
require the least amount of forward declarations.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
[darrick: minor whitespace cleanup]
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
fs/xfs/xfs_log.c
This page took 0.0490969999999999 seconds and 4 git commands to generate.