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] dlm: allow dlm do recovery during shutdown
Date: Fri, 26 Feb 2010 13:11:52 -0800	[thread overview]
Message-ID: <4B883918.5030502@oracle.com> (raw)
In-Reply-To: <1267217631-18593-1-git-send-email-srinivas.eeda@oracle.com>

sob

Srinivas Eeda wrote:
> If a node down event happens while dlm shutdown in progress, dlm recovery
> should be done before dlm is shutdown. But dlm_reco_thread only does recovery
> if the dlm_state is in DLM_CTXT_JOINED.
>
> dlm_reco_thread should do recovery if dlm_state is in DLM_CTXT_JOINED or
> DLM_CTXT_IN_SHUTDOWN.
>
> Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com>
> ---
>  fs/ocfs2/dlm/dlmrecovery.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c
> index d9fa3d2..e347b6a 100644
> --- a/fs/ocfs2/dlm/dlmrecovery.c
> +++ b/fs/ocfs2/dlm/dlmrecovery.c
> @@ -310,7 +310,7 @@ static int dlm_recovery_thread(void *data)
>  	mlog(0, "dlm thread running for %s...\n", dlm->name);
>  
>  	while (!kthread_should_stop()) {
> -		if (dlm_joined(dlm)) {
> +		if (dlm_domain_fully_joined(dlm)) {
>  			status = dlm_do_recovery(dlm);
>  			if (status == -EAGAIN) {
>  				/* do not sleep, recheck immediately. */
>   

  reply	other threads:[~2010-02-26 21:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-26 20:53 [Ocfs2-devel] [PATCH] dlm: allow dlm do recovery during shutdown Srinivas Eeda
2010-02-26 21:11 ` Sunil Mushran [this message]
2010-02-26 23:11 ` Joel Becker

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=4B883918.5030502@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.