fs: dlm: rsb hash table flag value to atomic ops
authorAlexander Aring <aahringo@redhat.com>
Mon, 6 Mar 2023 20:48:17 +0000 (15:48 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 6 Mar 2023 21:49:07 +0000 (15:49 -0600)
commit46d6e722d8b1cf07d21662f6b29bcd8e72f77305
tree92b43cb5323c05115447ef3c598c2106e7bea0b5
parente1af8728f600f648be1f552552e834c170a0244c
fs: dlm: rsb hash table flag value to atomic ops

This patch moves the rsb hash table handling to atomic flag operations.
The flag operations for DLM_RTF_SHRINK are protected by
ls->ls_rsbtbl[b].lock. However we switch to atomic ops if new possible
flags will be used in a different way and don't assume such lock
dependencies.

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