* [Ocfs2-devel] [PATCH] ocfs2/dlm: Target node death during resource migration leads to thread spin
@ 2011-05-04 17:34 Sunil Mushran
2011-05-04 17:43 ` Sunil Mushran
2011-05-05 22:00 ` Mark Fasheh
0 siblings, 2 replies; 3+ messages in thread
From: Sunil Mushran @ 2011-05-04 17:34 UTC (permalink / raw)
To: ocfs2-devel
During resource migration, if the target node were to die, the thread doing
the migration spins until the target node is not removed from the domain map.
This patch slows the spin by making the thread wait for the recovery to kick in.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
---
fs/ocfs2/dlm/dlmmaster.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
index 4499d86..4a780a3 100644
--- a/fs/ocfs2/dlm/dlmmaster.c
+++ b/fs/ocfs2/dlm/dlmmaster.c
@@ -2522,6 +2522,9 @@ fail:
res->state &= ~DLM_LOCK_RES_MIGRATING;
wake = 1;
spin_unlock(&res->spinlock);
+ if (dlm_is_host_down(ret))
+ dlm_wait_for_node_death(dlm, target,
+ DLM_NODE_DEATH_WAIT_MAX);
goto leave;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Ocfs2-devel] [PATCH] ocfs2/dlm: Target node death during resource migration leads to thread spin
2011-05-04 17:34 [Ocfs2-devel] [PATCH] ocfs2/dlm: Target node death during resource migration leads to thread spin Sunil Mushran
@ 2011-05-04 17:43 ` Sunil Mushran
2011-05-05 22:00 ` Mark Fasheh
1 sibling, 0 replies; 3+ messages in thread
From: Sunil Mushran @ 2011-05-04 17:43 UTC (permalink / raw)
To: ocfs2-devel
Joel,
FYI
The list of pending patches from my end are available here:
http://oss.oracle.com/~smushran/ocfs2-pending-patches/fs-may04/
Thanks
Sunil
On 05/04/2011 10:34 AM, Sunil Mushran wrote:
> During resource migration, if the target node were to die, the thread doing
> the migration spins until the target node is not removed from the domain map.
> This patch slows the spin by making the thread wait for the recovery to kick in.
>
> Signed-off-by: Sunil Mushran<sunil.mushran@oracle.com>
> ---
> fs/ocfs2/dlm/dlmmaster.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
> index 4499d86..4a780a3 100644
> --- a/fs/ocfs2/dlm/dlmmaster.c
> +++ b/fs/ocfs2/dlm/dlmmaster.c
> @@ -2522,6 +2522,9 @@ fail:
> res->state&= ~DLM_LOCK_RES_MIGRATING;
> wake = 1;
> spin_unlock(&res->spinlock);
> + if (dlm_is_host_down(ret))
> + dlm_wait_for_node_death(dlm, target,
> + DLM_NODE_DEATH_WAIT_MAX);
> goto leave;
> }
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Ocfs2-devel] [PATCH] ocfs2/dlm: Target node death during resource migration leads to thread spin
2011-05-04 17:34 [Ocfs2-devel] [PATCH] ocfs2/dlm: Target node death during resource migration leads to thread spin Sunil Mushran
2011-05-04 17:43 ` Sunil Mushran
@ 2011-05-05 22:00 ` Mark Fasheh
1 sibling, 0 replies; 3+ messages in thread
From: Mark Fasheh @ 2011-05-05 22:00 UTC (permalink / raw)
To: ocfs2-devel
On Wed, May 04, 2011 at 10:34:49AM -0700, Sunil Mushran wrote:
> During resource migration, if the target node were to die, the thread doing
> the migration spins until the target node is not removed from the domain map.
> This patch slows the spin by making the thread wait for the recovery to kick in.
>
> Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
--
Mark Fasheh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-05 22:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 17:34 [Ocfs2-devel] [PATCH] ocfs2/dlm: Target node death during resource migration leads to thread spin Sunil Mushran
2011-05-04 17:43 ` Sunil Mushran
2011-05-05 22:00 ` Mark Fasheh
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.