dlm: merge toss and keep hash table lists into one list
authorAlexander Aring <aahringo@redhat.com>
Mon, 15 Apr 2024 18:39:37 +0000 (14:39 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 16 Apr 2024 18:49:13 +0000 (13:49 -0500)
commit2d90354027ad2011c0c5a2a404fe81afc745c2a7
treeb49e9ac7c7dcff83072a285526bacb90b7b259a2
parentdcdaad05ca15150ae076299ba827867f243c0623
dlm: merge toss and keep hash table lists into one list

There are several places where lock processing can perform two hash table
lookups, first in the "keep" list, and if not found, in the "toss" list.
This patch introduces a new rsb state flag "RSB_TOSS" to represent the
difference between the state of being on keep vs toss list, so that the
two lists can be combined.  This avoids cases of two lookups.

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