All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rbd: manage racing opens/removes
@ 2013-01-28 22:08 Alex Elder
  2013-01-28 22:09 ` [PATCH 1/2] rbd: define flags field, use it for exists flag Alex Elder
  2013-01-28 22:09 ` [PATCH 2/2] rbd: prevent open for image being removed Alex Elder
  0 siblings, 2 replies; 7+ messages in thread
From: Alex Elder @ 2013-01-28 22:08 UTC (permalink / raw)
  To: ceph-devel

A recent change to rbd prevented rbd devices from being unmapped
when they were in use.  However that change did not address a
different, but related problem.  It is possible for an open (the
one that would bump the open count from 0 to 1) to begin after
a request to remove the rbd device has decided it can proceed.

To fix this, define a new "removing" flag to prevent opens from
proceeding once ermoval of a device has begun.  The first patch
in this series defines a new flags field, and uses it for this
as well as the "exists" flag for snapshot mappings.

					-Alex

[PATCH 1/2] rbd: define flags field, use it for exists flag
[PATCH 2/2] rbd: prevent open for image being removed

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/2] rbd: prevent open of image being unmapped
@ 2013-01-14 18:50 Alex Elder
  2013-01-14 18:51 ` [PATCH 2/2] rbd: prevent open for image being removed Alex Elder
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Elder @ 2013-01-14 18:50 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

This series protects an open of a mapped rbd image from succeeding
once an unmap of that image is underway.

Note:  Once committed these should be back-ported.

					-Alex

[PATCH 1/2] rbd: define flags field, use it for exists flag
[PATCH 2/2] rbd: prevent open for image being removed

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

end of thread, other threads:[~2013-01-30 21:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 22:08 [PATCH 0/2] rbd: manage racing opens/removes Alex Elder
2013-01-28 22:09 ` [PATCH 1/2] rbd: define flags field, use it for exists flag Alex Elder
2013-01-30 19:45   ` Josh Durgin
2013-01-28 22:09 ` [PATCH 2/2] rbd: prevent open for image being removed Alex Elder
2013-01-30 19:52   ` Josh Durgin
2013-01-30 21:25     ` Alex Elder
  -- strict thread matches above, loose matches on Subject: below --
2013-01-14 18:50 [PATCH 0/2] rbd: prevent open of image being unmapped Alex Elder
2013-01-14 18:51 ` [PATCH 2/2] rbd: prevent open for image being removed Alex Elder

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.