dlm: fix dlm_recover_members refcount on error
authorAlexander Aring <aahringo@redhat.com>
Mon, 18 Nov 2024 16:01:49 +0000 (11:01 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 18 Nov 2024 16:05:57 +0000 (10:05 -0600)
commit200b977ebbc313a59174ba971006a231b3533dc5
tree21a0affec062a1bc5b252e26e1c366ac4611624f
parentf74dacb4c81164d7578a11d5f8b660ad87059e6a
dlm: fix dlm_recover_members refcount on error

If dlm_recover_members() fails we don't drop the references of the
previous created root_list that holds and keep all rsbs alive during the
recovery. It might be not an unlikely event because ping_members() could
run into an -EINTR if another recovery progress was triggered again.

Fixes: 3a747f4a2ee8 ("dlm: move rsb root_list to ls_recover() stack")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/recoverd.c