cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Jiaju Zhang <jjzhang.linux@gmail.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] dlm_controld.pcmk: Fix membership change judging issue
Date: Thu, 13 May 2010 18:18:18 +0800	[thread overview]
Message-ID: <AANLkTim0xX5JiYx99npmTBSo3fXOrdm1rrvdFdBSVLj1@mail.gmail.com> (raw)
In-Reply-To: <20100513095117.GM20952@suse.de>

On Thu, May 13, 2010 at 5:51 PM, Lars Marowsky-Bree <lmb@novell.com> wrote:
> On 2010-05-13T16:49:27, Jiaju Zhang <jjzhang.linux@gmail.com> wrote:
>
> Hi Jiaju,
>
> thanks for the patch and the technical explanation!
>
>> Because all the components get the membership info eventually from
>> Corosync, IMO, for dlm_controld.pcmk, there is no need to wait
>> Pacemaker/crmd to finish all the information processing related to
>> membership change.
>>
>> Patched attached below, any review and comments are highly
>> appreciated!
>
> I'd only like to add the user-visible impact of this - namely, when a
> previously unknown node joins a pcmk cluster (with running DLM etc),
> nodes will hang.
>
> So it is fairly important to get fixed.
>
>
> So, with my limited knowledge of the code, I think the fix is sound. I
> have just one clerical comment:
>
>> ?void process_cluster(int ci)
>> ?{
>> - ? ?ais_dispatch(ais_fd_async, NULL);
>> ? ? ?update_cluster();
>> ?}
>
> Can this function be removed? It doesn't do anything any more. Or is
> there something that should be done with the "ci" argument?

There is something that should be done with the "ci" argument. In
fact, the "ci" means one slot which holds a socket(most cases) and a
related processing function which is monitored by "poll" in
dlm_controld.
update_cluster is in different calling path to process_cluster.

Many thanks for the review ;)
Jiaju



  parent reply	other threads:[~2010-05-13 10:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13  8:49 [Cluster-devel] [PATCH] dlm_controld.pcmk: Fix membership change judging issue Jiaju Zhang
     [not found] ` <20100513095117.GM20952@suse.de>
2010-05-13 10:18   ` Jiaju Zhang [this message]
2010-05-13 16:25   ` Andrew Beekhof
     [not found]     ` <20100513183215.GP20952@suse.de>
2010-05-13 20:19       ` Andrew Beekhof
2010-05-14  3:04         ` Tim Serong
2010-05-14 10:15           ` Andrew Beekhof
2010-05-14 11:28             ` Jiaju Zhang
     [not found]         ` <20100513203604.GQ20952@suse.de>
2010-05-14  9:52           ` Andrew Beekhof
2010-05-14 11:25             ` Jiaju Zhang
2010-05-14  4:08     ` Jiaju Zhang
2010-05-14  5:33       ` Jiaju Zhang

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=AANLkTim0xX5JiYx99npmTBSo3fXOrdm1rrvdFdBSVLj1@mail.gmail.com \
    --to=jjzhang.linux@gmail.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 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).