fs: dlm: requestqueue busy wait to event based wait
authorAlexander Aring <aahringo@redhat.com>
Tue, 2 Nov 2021 19:17:17 +0000 (15:17 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 2 Nov 2021 19:39:20 +0000 (14:39 -0500)
commit164d88abd7608e869b7617d5ff8893344fdda759
treef8175515fd4c243b8b55faf578eefc5906968e7c
parent92732376fd29462b502f41486bcef55f49c5713e
fs: dlm: requestqueue busy wait to event based wait

This patch changes the requestqueue busy waiting algorithm to use
atomic counter values and wait_event() to wait until the requestqueue is
empty. It will slightly reduce the number of holding ls_requestqueue_mutex
mutex.

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