[sheepdog] [PATCH] sheep: simplify the cluster driver interface for blocking events

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Jun 18 23:00:24 CEST 2012


At Tue, 5 Jun 2012 08:07:34 -0400,
Christoph Hellwig wrote:
> 
> Let sd_block_handler handle the fine details of how to handle an incoming
> blocking event.  By passing the sender node structure we can easily handle
> ignoring it on other nodes, and by keeping a local operation in progress
> flag in group.c we can replace the callbacked flag in the on the wire
> events with a way simpler mechanism.
> 
> The only slightly complicated bit is that zk_notify_blocked in the zookeeper
> backend can now go negative for a short period of time, so we explicitly
> have to check for it beeing positive in two places.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list