All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] rbd: avoid snapshot update race
@ 2013-04-27 19:37 Alex Elder
  2013-04-27 19:39 ` [PATCH 1/5] rbd: move more initialization into rbd_dev_probe_image() Alex Elder
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Alex Elder @ 2013-04-27 19:37 UTC (permalink / raw)
  To: ceph-devel

This series ends with a patch that avoids a race involving the
initial read of an rbd image header and a change to the snapshot
context.  The problem occurs because the rbd client sets up its
watch request on the header object *after* the initial header
read, and if the snapshot context changes between them the
kernel client snapshot context will not be up-to-date.

The fix is to set up the watch before doing the initial
header read.  The recent patches, along with the patches
in this series, make doing things in this order possible.

					-Alex

[PATCH 1/5] rbd: move more initialization into rbd_dev_probe_image()
[PATCH 2/5] rbd: define rbd_header_name()
[PATCH 3/5] rbd: don't clean up watch in device release function
[PATCH 4/5] rbd: don't bother checking whether order changes
[PATCH 5/5] rbd: set up watch in rbd_dev_probe_image()

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-04-30 19:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-27 19:37 [PATCH 0/5] rbd: avoid snapshot update race Alex Elder
2013-04-27 19:39 ` [PATCH 1/5] rbd: move more initialization into rbd_dev_probe_image() Alex Elder
2013-04-27 19:39 ` [PATCH 2/5] rbd: define rbd_header_name() Alex Elder
2013-04-27 19:39 ` [PATCH 3/5] rbd: don't clean up watch in device release function Alex Elder
2013-04-27 19:39 ` [PATCH 4/5] rbd: don't bother checking whether order changes Alex Elder
2013-04-27 19:40 ` [PATCH 5/5] rbd: set up watch in rbd_dev_probe_image() Alex Elder
2013-04-27 19:42 ` [PATCH 0/5] rbd: avoid snapshot update race Alex Elder
2013-04-29 17:52   ` Alex Elder
2013-04-30 19:13     ` Josh Durgin

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.