From: teigland@sourceware.org <teigland@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/group/gfs_controld plock.c recover.c
Date: 2 Aug 2006 20:50:40 -0000 [thread overview]
Message-ID: <20060802205040.23835.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-08-02 20:50:40
Modified files:
group/gfs_controld: plock.c recover.c
Log message:
- complain and ignore checkpoint sections with a bad size
- do checkpoint for new nodes if low node in charge of that failed
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/plock.c.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/recover.c.diff?cvsroot=cluster&r1=1.6&r2=1.7
--- cluster/group/gfs_controld/plock.c 2006/08/02 19:23:41 1.5
+++ cluster/group/gfs_controld/plock.c 2006/08/02 20:50:40 1.6
@@ -1235,6 +1235,12 @@
iov.readSize);
section_len = iov.readSize;
+ if (!section_len || section_len % sizeof(struct pack_plock)) {
+ log_error("retrieve_plocks: bad section len %d %s",
+ section_len, mg->name);
+ continue;
+ }
+
unpack_section_buf(mg, desc.sectionId.id, desc.sectionId.idLen);
}
--- cluster/group/gfs_controld/recover.c 2006/08/02 18:27:57 1.6
+++ cluster/group/gfs_controld/recover.c 2006/08/02 20:50:40 1.7
@@ -1887,15 +1887,23 @@
/* New mounters may be waiting for a journals message that a failed node (as
low nodeid) would have sent. If the low nodeid failed and we're the new low
nodeid, then send a journals message to any nodes for whom we've not seen a
- journals message. */
+ journals message. We also need to checkpoint the plock state for the new
+ nodes to read after they get their journals message. */
void resend_journals(struct mountgroup *mg)
{
struct mg_member *memb;
+ int stored_plocks = 0;
list_for_each_entry(memb, &mg->members, list) {
if (!memb->needs_journals)
continue;
+
+ if (!stored_plocks) {
+ store_plocks(mg);
+ stored_plocks = 1;
+ }
+
log_group(mg, "resend_journals to %d", memb->nodeid);
send_journals(mg, memb->nodeid);
}
next reply other threads:[~2006-08-02 20:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-02 20:50 teigland [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-10-16 17:12 [Cluster-devel] cluster/group/gfs_controld plock.c recover.c teigland
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=20060802205040.23835.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 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.