All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2/dlm: Target node death during resource migration leads to thread spin
Date: Wed, 04 May 2011 10:43:53 -0700	[thread overview]
Message-ID: <4DC19059.2010501@oracle.com> (raw)
In-Reply-To: <1304530489-16123-1-git-send-email-sunil.mushran@oracle.com>

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;
>   	}

  reply	other threads:[~2011-05-04 17:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-05-05 22:00 ` Mark Fasheh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DC19059.2010501@oracle.com \
    --to=sunil.mushran@oracle.com \
    --cc=ocfs2-devel@oss.oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.