gfs2: Unlock fewer glocks on unmount
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 10 Apr 2024 03:23:19 +0000 (05:23 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 24 Apr 2024 17:48:20 +0000 (19:48 +0200)
commita3730c5ec57b033ba6e437f7881a894d57b28a4a
tree02450a3bfb66455ac32cae456c5ede4741de2fcd
parentd98779e687726d8f8860f1c54b5687eec5f63a73
gfs2: Unlock fewer glocks on unmount

At unmount time, we would generally like to explicitly unlock as few
glocks as possible for efficiency.  We are already skipping glocks that
don't have a lock value block (LVB), but we can also skip glocks which
are not held in DLM_LOCK_EX or DLM_LOCK_PW mode (of which gfs2 only uses
DLM_LOCK_EX under the name LM_ST_EXCLUSIVE).

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Cc: David Teigland <teigland@redhat.com>
fs/gfs2/lock_dlm.c