diff options
author | Alexander Aring <aahringo@redhat.com> | 2023-05-29 17:44:38 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-06-14 10:17:33 -0500 |
commit | 75a7d60134ce84209f2c61ec4619ee543aa8f466 (patch) | |
tree | a8fc3670fe1b32420e1a1a2ba283dddc97b4590a /fs/dlm/dlm_internal.h | |
parent | 07ee38674a0b9071fa0bbec4dbda6aad1c5e4003 (diff) | |
download | lwn-75a7d60134ce84209f2c61ec4619ee543aa8f466.tar.gz lwn-75a7d60134ce84209f2c61ec4619ee543aa8f466.zip |
fs: dlm: handle lkb wait count as atomic_t
Currently the lkb_wait_count is locked by the rsb lock and it should be
fine to handle lkb_wait_count as non atomic_t value. However for the
overall process of reducing locking this patch converts it to an
atomic_t value.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/dlm_internal.h')
-rw-r--r-- | fs/dlm/dlm_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h index 986a9d7b1f33..c8156770205e 100644 --- a/fs/dlm/dlm_internal.h +++ b/fs/dlm/dlm_internal.h @@ -246,7 +246,7 @@ struct dlm_lkb { int8_t lkb_highbast; /* highest mode bast sent for */ int8_t lkb_wait_type; /* type of reply waiting for */ - int8_t lkb_wait_count; + atomic_t lkb_wait_count; int lkb_wait_nodeid; /* for debugging */ struct list_head lkb_statequeue; /* rsb g/c/w list */ |