All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] dlm: allow dlm do recovery during shutdown
@ 2010-02-26 20:53 Srinivas Eeda
  2010-02-26 21:11 ` Sunil Mushran
  2010-02-26 23:11 ` Joel Becker
  0 siblings, 2 replies; 3+ messages in thread
From: Srinivas Eeda @ 2010-02-26 20:53 UTC (permalink / raw)
  To: ocfs2-devel

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. */
-- 
1.5.6.5

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

* [Ocfs2-devel] [PATCH] dlm: allow dlm do recovery during shutdown
  2010-02-26 20:53 [Ocfs2-devel] [PATCH] dlm: allow dlm do recovery during shutdown Srinivas Eeda
@ 2010-02-26 21:11 ` Sunil Mushran
  2010-02-26 23:11 ` Joel Becker
  1 sibling, 0 replies; 3+ messages in thread
From: Sunil Mushran @ 2010-02-26 21:11 UTC (permalink / raw)
  To: ocfs2-devel

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. */
>   

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

* [Ocfs2-devel] [PATCH] dlm: allow dlm do recovery during shutdown
  2010-02-26 20:53 [Ocfs2-devel] [PATCH] dlm: allow dlm do recovery during shutdown Srinivas Eeda
  2010-02-26 21:11 ` Sunil Mushran
@ 2010-02-26 23:11 ` Joel Becker
  1 sibling, 0 replies; 3+ messages in thread
From: Joel Becker @ 2010-02-26 23:11 UTC (permalink / raw)
  To: ocfs2-devel

On Fri, Feb 26, 2010 at 12:53:51PM -0800, 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>

This patch is now in the 'merge-window' branch of ocfs2.git.

Joel

-- 

"Nobody loves me,
 Nobody seems to care.
 Troubles and worries, people,
 You know I've had my share."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127

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

end of thread, other threads:[~2010-02-26 23:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 20:53 [Ocfs2-devel] [PATCH] dlm: allow dlm do recovery during shutdown Srinivas Eeda
2010-02-26 21:11 ` Sunil Mushran
2010-02-26 23:11 ` Joel Becker

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.