Commit 50635f15 authored by Kurt Hackel's avatar Kurt Hackel Committed by Mark Fasheh

ocfs2_dlm: Drop inflight refmap even if no locks found on the lockres

Signed-off-by: default avatarKurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: default avatarSunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 1cd04dbe
...@@ -1908,11 +1908,9 @@ static int dlm_process_recovery_data(struct dlm_ctxt *dlm, ...@@ -1908,11 +1908,9 @@ static int dlm_process_recovery_data(struct dlm_ctxt *dlm,
leave: leave:
/* balance the ref taken when the work was queued */ /* balance the ref taken when the work was queued */
if (added > 0) { spin_lock(&res->spinlock);
spin_lock(&res->spinlock); dlm_lockres_drop_inflight_ref(dlm, res);
dlm_lockres_drop_inflight_ref(dlm, res); spin_unlock(&res->spinlock);
spin_unlock(&res->spinlock);
}
if (ret < 0) { if (ret < 0) {
mlog_errno(ret); mlog_errno(ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment