mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
ocfs2_dlm: Drop inflight refmap even if no locks found on the lockres
Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com> Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
This commit is contained in:
parent
1cd04dbe33
commit
50635f15b3
|
|
@ -1908,11 +1908,9 @@ static int dlm_process_recovery_data(struct dlm_ctxt *dlm,
|
|||
|
||||
leave:
|
||||
/* balance the ref taken when the work was queued */
|
||||
if (added > 0) {
|
||||
spin_lock(&res->spinlock);
|
||||
dlm_lockres_drop_inflight_ref(dlm, res);
|
||||
spin_unlock(&res->spinlock);
|
||||
}
|
||||
spin_lock(&res->spinlock);
|
||||
dlm_lockres_drop_inflight_ref(dlm, res);
|
||||
spin_unlock(&res->spinlock);
|
||||
|
||||
if (ret < 0) {
|
||||
mlog_errno(ret);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user