All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joel Becker <Joel.Becker@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2_dlmfs: Use poll() to signify BASTs.
Date: Wed, 27 Jan 2010 18:59:38 -0800	[thread overview]
Message-ID: <20100128025938.GC21942@mail.oracle.com> (raw)
In-Reply-To: <20100127221330.GA21942@mail.oracle.com>

On Wed, Jan 27, 2010 at 02:13:31PM -0800, Joel Becker wrote:
> Because there is no asynchronous notification, there is no way for a
> process holding a lock to know another node needs the lock.  This is the
> number one complaint of ocfs2_dlmfs users.  Turns out, we can solve this
> very easily.  We add poll() support to ocfs2_dlmfs.  When a BAST is
> received, the lock's file descriptor will receive POLLIN.

	Here's a test program to drive this with raw filesystem access.
Start a heartbeat on each node, then run the test program on each node.
They should pass the lock around.

Joel

-- 

Life's Little Instruction Book #396

	"Never give anyone a fruitcake."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
-------------- next part --------------
A non-text attachment was scrubbed...
Name: userdlm-polltest.c
Type: text/x-csrc
Size: 2383 bytes
Desc: not available
Url : http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20100127/8c23e90f/attachment.bin 

      reply	other threads:[~2010-01-28  2:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-27 22:13 [Ocfs2-devel] [PATCH] ocfs2_dlmfs: Use poll() to signify BASTs Joel Becker
2010-01-28  2:59 ` Joel Becker [this message]

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=20100128025938.GC21942@mail.oracle.com \
    --to=joel.becker@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.