All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Massimo Di Nitto <fabbione@ubuntu.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] RFC: cman_wait_init rework
Date: Thu, 08 Nov 2007 17:05:49 -0500	[thread overview]
Message-ID: <4733883D.7000803@ubuntu.com> (raw)

Hi guys,

I just spotted one major issue with the basic implementation of
cman_wait_init. Basically we don't provide the user any kind
of information about the status and this is bad IMHO.

So I have been thinking a bit about it and I see 2 solutions to
the problem:

One is to just revert the original patch and let the clients use
the actual code for cman_init and cman_admin_init.

Two is to complete cman_wait_init with something similar to the patch
in attachment. As an example I have converted qdisk to use it (patch is untested
and qdisk is kind of a special case because it retains backwards compatibility
with older versions of cman, so look at it in the full context of the code).
You can see that the code is generally simplified and the client can retain as
much control as they want.

The basic idea is to provide the option to hook two (optionals) callbacks that
are invoked in each loop (waiting for cman or quorum).

If we will go this route, i want to extend this patch to allow the callbacks to
either modify/reset the loops or return some values to break the loops.

Cheers
Fabio
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cman_wait.diff
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20071108/4aaa4d86/attachment.ksh>

                 reply	other threads:[~2007-11-08 22:05 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=4733883D.7000803@ubuntu.com \
    --to=fabbione@ubuntu.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.