New branch 'review2' available with the following commits:
commit e0ee4ea4e7279af31efc4737065fbcce043a32e0
Author: David Teigland <teigland(a)redhat.com>
Date: Tue May 27 15:16:00 2014 -0500
sanlock: lockspace host events
Hosts can set/get events between each other using a common lockspace.
. set_event takes two opaque 64 bit values ("event" and "data"),
and
a target host_id with optional host generation.
. reg_event creates an fd that a program can use in poll(2), and
. get_event on this fd returns the event values that have been set
along with the source host_id/generation.
. end_event releases the registered fd.
Each set_event call replaces generation/event/data values from the
previous set_event call, but host_id's from each are maintained.
set_event can be used to send the same event/data values to multiple
hosts at once using multiple set_event calls (generation is not
applicable in this case.)
set_event with different values within the same window of time results
in -EBUSY (unless the REPLACE flag is used). Otherwise, the second
set_event may result in the earlier target host(s) seeing later values
not intended for them, and missing the earlier values from the first
set_event.
Event values are passed through fields in the lockspace delta leases.
Event notification is done via the host_id bitmaps in lockspace delta
leases. Setting an event (or making a resource request) for a target host
results in the target host's bit being set in the sending host's bitmap.
The bit remains set for set_bitmap_seconds (60 sec with 10 sec io
timeout.) After this, the bit is cleared and the target host will no
longer be notified. The target host will typically generate three events
for each set_event, once from each delta lease renewal (every 20 seconds)
over the course of the set_bitmap_seconds.
Signed-off-by: David Teigland <teigland(a)redhat.com>
commit 2e5150be0ad662f218a5442bd1c40f12c825022d
Author: David Teigland <teigland(a)redhat.com>
Date: Thu Jun 19 10:51:54 2014 -0500
sanlock: fix get_hosts off by one
When a host_id is specified, the information for
host_id+1 is returned.
Signed-off-by: David Teigland <teigland(a)redhat.com>
commit c895fb472b0bd1faf088e0ff11b41f0a6864168b
Author: David Teigland <teigland(a)redhat.com>
Date: Fri Apr 11 14:10:25 2014 -0500
sanlock: shutdown reply
A wait option (-w 1) can be added to sanlock shutdown.
The shutdown command will wait for a result from the
daemon indicating success (exiting), or failure (not
exiting because lockspaces exist).
Signed-off-by: David Teigland <teigland(a)redhat.com>
Show replies by date