From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 3/3] ocfs2/dlm: Do not migrate resource to a node that is leaving the domain
Date: Thu, 05 May 2011 15:44:50 -0700 [thread overview]
Message-ID: <4DC32862.3080901@oracle.com> (raw)
In-Reply-To: <20110505222417.GF17822@wotan.suse.de>
On 05/05/2011 03:24 PM, Mark Fasheh wrote:
> On Tue, Apr 26, 2011 at 04:03:25PM -0700, Sunil Mushran wrote:
>> - /* ok now we're getting desperate. pick anyone alive. */
>> + /* Go thru the refmap */
>> nodenum = -1;
>> while (1) {
>> - nodenum = find_next_bit(dlm->domain_map,
>> - O2NM_MAX_NODES, nodenum+1);
>> - mlog(0, "found %d in domain map\n", nodenum);
>> + nodenum = find_next_bit(res->refmap, O2NM_MAX_NODES,
>> + nodenum + 1);
>> if (nodenum>= O2NM_MAX_NODES)
>> break;
>> - if (nodenum != dlm->node_num) {
>> - mlog(0, "picking %d\n", nodenum);
>> - return nodenum;
>> - }
>> + if (nodenum == dlm->node_num)
>> + continue;
>> + if (test_bit(nodenum, dlm->exit_domain_map))
>> + continue;
>> + if (!test_bit(lock->ml.node, dlm->domain_map))
>> + continue;
> If the lock's owning node isn't in the domain map, we're just ignoring it? I
> guess I'm not following what the last 'if (!test_bit(lock->ml.node,
> dlm->domain_map))' line is trying to do.
> --Mark
>
> PS: I'm rusty on fs/ocfs2/dlm stuff as you can tell :)
oops... that's a typo. It should be nodenum. Hey, you do remember
o2dlm. ;)
That check is superfluous. As in, that nodenum should always be in
the domain_map. But we've had that check from before and I'm trying
not to rock the boat too much.
next prev parent reply other threads:[~2011-05-05 22:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-26 23:03 [Ocfs2-devel] [PATCH 1/3] ocfs2/dlm: dlm_is_lockres_migrateable() returns boolean Sunil Mushran
2011-04-26 23:03 ` [Ocfs2-devel] [PATCH 2/3] ocfs2/dlm: Add new dlm message DLM_BEGIN_EXIT_DOMAIN_MSG Sunil Mushran
2011-05-05 22:12 ` Mark Fasheh
2011-04-26 23:03 ` [Ocfs2-devel] [PATCH 3/3] ocfs2/dlm: Do not migrate resource to a node that is leaving the domain Sunil Mushran
2011-05-05 22:24 ` Mark Fasheh
2011-05-05 22:44 ` Sunil Mushran [this message]
2011-05-05 23:28 ` Mark Fasheh
2011-05-05 23:44 ` Sunil Mushran
2011-05-10 6:19 ` Wengang Wang
2011-05-10 17:17 ` Sunil Mushran
2011-05-05 22:09 ` [Ocfs2-devel] [PATCH 1/3] ocfs2/dlm: dlm_is_lockres_migrateable() returns boolean Mark Fasheh
2011-05-05 22:15 ` Sunil Mushran
2011-05-24 6:53 ` 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=4DC32862.3080901@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.