fs: dlm: handle lkb wait count as atomic_t
authorAlexander Aring <aahringo@redhat.com>
Mon, 29 May 2023 21:44:38 +0000 (17:44 -0400)
committerDavid Teigland <teigland@redhat.com>
Wed, 14 Jun 2023 15:17:33 +0000 (10:17 -0500)
commit75a7d60134ce84209f2c61ec4619ee543aa8f466
treea8fc3670fe1b32420e1a1a2ba283dddc97b4590a
parent07ee38674a0b9071fa0bbec4dbda6aad1c5e4003
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>
fs/dlm/dlm_internal.h
fs/dlm/lock.c