fs: dlm: use dlm_recovery_stopped in condition
authorAlexander Aring <aahringo@redhat.com>
Tue, 2 Nov 2021 19:17:13 +0000 (15:17 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 2 Nov 2021 19:39:20 +0000 (14:39 -0500)
commite10249b1902d3b0b71e99f518a695c2c39ab4fe6
tree25b5c0d58b18c3563e32ec4f28facb9c1c566797
parent3e9736713d0cb2877b11ec7185b231bba7b21936
fs: dlm: use dlm_recovery_stopped in condition

This patch will change to evaluate the dlm_recovery_stopped() in the
condition of the if branch instead fetch it before evaluating the
condition. As this is an atomic test-set operation it should be
evaluated in the condition itself.

Reported-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dir.c
fs/dlm/member.c
fs/dlm/recoverd.c