fs: dlm: get recovery sequence number as parameter
authorAlexander Aring <aahringo@redhat.com>
Tue, 1 Aug 2023 18:09:45 +0000 (14:09 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 10 Aug 2023 15:33:03 +0000 (10:33 -0500)
commitc4f4e135c27b503d325d414819831909023b113d
treec8058943ff789979369e139c56c84ce7534b4b75
parent643f5cfa610f475c7465e4158b2b1fdd170fac10
fs: dlm: get recovery sequence number as parameter

This patch removes a read of the ls->ls_recover_seq uint64_t number in
_create_rcom(). If the ls->ls_recover_seq is readed the ls_recover_lock
need to held. However this number was always readed before when any rcom
message is received and it's not necessary to read it again from a per
lockspace variable to use it for the replying message. This patch will
pass the sequence number as parameter so another read of ls->ls_recover_seq
and holding the ls->ls_recover_lock is not required.

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