diff options
author | Dave Chinner <dchinner@redhat.com> | 2021-06-25 21:21:01 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-06-25 21:21:34 +0300 |
commit | b6903358c230c517b29ecdb6123276d96cc0beab (patch) | |
tree | 5fe4082616fb6ef0694d324e0bcdad0192f41e45 /scripts/faddr2line | |
parent | 6be001021f0b307c8c1544e8b3ac87de20d711de (diff) | |
download | linux-b6903358c230c517b29ecdb6123276d96cc0beab.tar.xz |
xfs: remove callback dequeue loop from xlog_state_do_iclog_callbacks
If we are processing callbacks on an iclog, nothing can be
concurrently adding callbacks to the loop. We only add callbacks to
the iclog when they are in ACTIVE or WANT_SYNC state, and we
explicitly do not add callbacks if the iclog is already in IOERROR
state.
The only way to have a dequeue racing with an enqueue is to be
processing a shutdown without a direct reference to an iclog in
ACTIVE or WANT_SYNC state. As the enqueue avoids this race
condition, we only ever need a single dequeue operation in
xlog_state_do_iclog_callbacks(). Hence we can remove the loop.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'scripts/faddr2line')
0 files changed, 0 insertions, 0 deletions