From: Alex Elder <elder@inktank.com>
To: ceph-devel@vger.kernel.org
Subject: [PATCH 0/2] rbd: manage racing opens/removes
Date: Mon, 28 Jan 2013 16:08:18 -0600 [thread overview]
Message-ID: <5106F6D2.7040805@inktank.com> (raw)
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
next reply other threads:[~2013-01-28 22:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-28 22:08 Alex Elder [this message]
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
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=5106F6D2.7040805@inktank.com \
--to=elder@inktank.com \
--cc=ceph-devel@vger.kernel.org \
/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.