diff options
author | Alexander Aring <aahringo@redhat.com> | 2023-03-06 21:48:16 +0100 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-03-06 22:49:07 +0100 |
commit | e1af8728f600f648be1f552552e834c170a0244c (patch) | |
tree | 9f0890c486d91392832c8899912d003ed7396f86 /fs/dlm/lockspace.c | |
parent | fs: dlm: change dflags to use atomic bits (diff) | |
download | linux-e1af8728f600f648be1f552552e834c170a0244c.tar.xz linux-e1af8728f600f648be1f552552e834c170a0244c.zip |
fs: dlm: move internal flags to atomic ops
This patch will move the lkb_flags value to the recently introduced
lkb_iflags value. For lkb_iflags we use atomic bit operations because
some flags like DLM_IFL_CB_PENDING are used while non rsb lock is held
to avoid issues with other flag manipulations which might run at the
same time we switch to atomic bit operations. Snapshot the bit values to
an uint32_t value is only used for debugging/logging use cases and don't
need to be 100% correct.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lockspace.c')
-rw-r--r-- | fs/dlm/lockspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index de9bb775236d..67261b7b1f0e 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -741,7 +741,7 @@ static int lkb_idr_free(int id, void *p, void *data) { struct dlm_lkb *lkb = p; - if (lkb->lkb_lvbptr && lkb->lkb_flags & DLM_IFL_MSTCPY) + if (lkb->lkb_lvbptr && test_bit(DLM_IFL_MSTCPY_BIT, &lkb->lkb_iflags)) dlm_free_lvb(lkb->lkb_lvbptr); dlm_free_lkb(lkb); |