Skip to contentSkip to conversation

ocfs2/dlm: another miss of setting DLM_LOCK_RES_IN_PROGRESS

PATCH New Wengang Wang 1 participant 1 message Nov 17, 2010 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ocfs2/dlm: another miss of setting DLM_LOCK_RES_IN_PROGRESS

Another miss of setting DLM_LOCK_RES_IN_PROGRESS.

---
 fs/ocfs2/dlm/dlmlock.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
fs/ocfs2/dlm/dlmlock.c +2 -0
index 69cf369..701dcee 100644
@@ -139,6 +139,8 @@ static enum dlm_status dlmlock_master(struct dlm_ctxt *dlm,
 		return status;
 	}
 	__dlm_wait_on_lockres(res);
+	res->state |= DLM_LOCK_RES_IN_PROGRESS;
+
 	__dlm_lockres_reserve_ast(res);
 
 	if (dlm_can_grant_new_lock(res, lock)) {
Signature · 1 line
1.7.2.3