dlm: use rwlock for rsb hash table
authorAlexander Aring <aahringo@redhat.com>
Mon, 15 Apr 2024 18:39:42 +0000 (14:39 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 16 Apr 2024 19:45:31 +0000 (14:45 -0500)
commite91313591b29ce724fe2f1bdf29f2482878fc275
treef3058f289d907f09b98a946527b388e6e6f57a93
parentb1f2381c1a8d52b973944090ed8b42c750152533
dlm: use rwlock for rsb hash table

The conversion to rhashtable introduced a hash table lock per lockspace,
in place of per bucket locks.  To make this more scalable, switch to
using a rwlock for hash table access.  The common case fast path uses
it as a read lock.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/debug_fs.c
fs/dlm/dir.c
fs/dlm/dlm_internal.h
fs/dlm/lock.c
fs/dlm/lockspace.c
fs/dlm/recover.c
fs/dlm/recoverd.c