fs: dlm: use spin lock instead of mutex
authorAlexander Aring <aahringo@redhat.com>
Thu, 27 Oct 2022 20:45:19 +0000 (16:45 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 8 Nov 2022 18:59:41 +0000 (12:59 -0600)
commit92e95733307e7b6dd352c12fa174089ed51e7208
treebe0513dd02a0ea114adec2095304485c27f2bc20
parenta4c0352bb1094cbe242f4458e267de845790737a
fs: dlm: use spin lock instead of mutex

There is no need to use a mutex in those hot path sections. We change it
to spin lock to serve callbacks more faster by not allowing schedule.
The locked sections will not be locked for a long time.

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