[Ocfs2-devel] [PATCH] ocfs2/dlm: a missed DLM_LOCK_RES_IN_PROGRESS set
Wengang Wang
wen.gang.wang at oracle.com
Wed Nov 17 07:53:00 PST 2010
We set DLM_LOCK_RES_IN_PROGRESS flag when we are processing a lock request.
There is a miss in dlmunlock_common.
Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com>
---
fs/ocfs2/dlm/dlmunlock.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/ocfs2/dlm/dlmunlock.c b/fs/ocfs2/dlm/dlmunlock.c
index 817287c..ef219ac 100644
--- a/fs/ocfs2/dlm/dlmunlock.c
+++ b/fs/ocfs2/dlm/dlmunlock.c
@@ -137,6 +137,8 @@ static enum dlm_status dlmunlock_common(struct dlm_ctxt *dlm,
/* ok for this to sleep if not in a network handler */
__dlm_wait_on_lockres(res);
res->state |= DLM_LOCK_RES_IN_PROGRESS;
+ } else {
+ res->state |= DLM_LOCK_RES_IN_PROGRESS;
}
spin_lock(&lock->spinlock);
--
1.7.2.3
More information about the Ocfs2-devel
mailing list