All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2/dlm: a missed DLM_LOCK_RES_IN_PROGRESS set
@ 2010-11-17 15:53 Wengang Wang
  2010-11-17 16:44 ` Wengang Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Wengang Wang @ 2010-11-17 15:53 UTC (permalink / raw)
  To: ocfs2-devel

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@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Ocfs2-devel] [PATCH] ocfs2/dlm: a missed DLM_LOCK_RES_IN_PROGRESS set
  2010-11-17 15:53 [Ocfs2-devel] [PATCH] ocfs2/dlm: a missed DLM_LOCK_RES_IN_PROGRESS set Wengang Wang
@ 2010-11-17 16:44 ` Wengang Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Wengang Wang @ 2010-11-17 16:44 UTC (permalink / raw)
  To: ocfs2-devel

Sorry, I want to take back the two patches.

It seems DLM_LOCK_RES_IN_PROGRESS is needed only for remote work, and
for master node, spin lock is enough.
dlmunlock_common() does need some fix since it includes remote case.
I will send the fix later.

regards,
wengang.

On 10-11-17 23:53, Wengang Wang wrote:
> 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@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
> 
> 
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-17 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-17 15:53 [Ocfs2-devel] [PATCH] ocfs2/dlm: a missed DLM_LOCK_RES_IN_PROGRESS set Wengang Wang
2010-11-17 16:44 ` Wengang Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.