From: teigland@sourceware.org <teigland@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/group/daemon app.c joinleave.c
Date: 13 Oct 2006 20:07:46 -0000 [thread overview]
Message-ID: <20061013200746.8567.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-10-13 20:07:45
Modified files:
group/daemon : app.c joinleave.c
Log message:
Fix an effect of recovery mixed with joins where the node whose join
event was interrupted by the recovery can sometimes not have its
g->joining flag cleared which would cause a later unmount to hang.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/app.c.diff?cvsroot=cluster&r1=1.50&r2=1.51
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/joinleave.c.diff?cvsroot=cluster&r1=1.18&r2=1.19
--- cluster/group/daemon/app.c 2006/10/12 14:25:58 1.50
+++ cluster/group/daemon/app.c 2006/10/13 20:07:45 1.51
@@ -1610,6 +1610,12 @@
if (event_state_starting(a) || event_state_all_started(a)) {
log_group(g, "rev %d replaces current ev %d %s",
rev->nodeid, ev->nodeid, ev_state_str(ev));
+
+ /* what we do for our own join when reaching JOIN_ALL_STARTED */
+ if (is_our_join(ev)) {
+ purge_messages(g);
+ g->joining = 0;
+ }
clear_all_nodes_stopped(a);
list_del(&rev->list);
a->current_event = rev;
--- cluster/group/daemon/joinleave.c 2006/09/26 19:17:21 1.18
+++ cluster/group/daemon/joinleave.c 2006/10/13 20:07:45 1.19
@@ -116,25 +116,25 @@
}
if (g->joining) {
- log_group(g, "leave: still joining");
+ log_error(g, "leave: still joining");
return -EAGAIN;
}
if (g->leaving) {
- log_group(g, "leave: already leaving");
+ log_error(g, "leave: already leaving");
return -EBUSY;
}
if (g->app->current_event &&
g->app->current_event->nodeid == our_nodeid) {
- log_group(g, "leave: busy event %llx state %s",
+ log_error(g, "leave: busy event %llx state %s",
ev->id, ev_state_str(g->app->current_event));
return -EAGAIN;
}
list_for_each_entry(ev, &g->app->events, list) {
ASSERT(ev->nodeid != our_nodeid);
- log_group(g, "event id %llx", ev->id);
+ log_group(g, "do_leave: found queued event id %llx", ev->id);
}
log_debug("%d:%s got leave", level, name);
reply other threads:[~2006-10-13 20:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20061013200746.8567.qmail@sourceware.org \
--to=teigland@sourceware.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).