From: Josh Durgin <josh.durgin@inktank.com>
To: Alex Elder <elder@inktank.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: [PATCH 0/5] rbd: avoid snapshot update race
Date: Tue, 30 Apr 2013 12:13:32 -0700 [thread overview]
Message-ID: <518017DC.1000002@inktank.com> (raw)
In-Reply-To: <517EB362.6020700@inktank.com>
On 04/29/2013 10:52 AM, Alex Elder wrote:
> On 04/27/2013 02:42 PM, Alex Elder wrote:
>> On 04/27/2013 02:37 PM, Alex Elder wrote:
>>> 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.
>
> I have similarly updated these patches. The new versions now
> replace the old ones in the "review/wip-rbd-cleanup-4" branch
> of the ceph-client git repository.
>
> -Alex
>> This series is available in the "review/wip-rbd-cleanup-4"
>> in the ceph-client git repository, which is based on branch
>> "review/wip-rbd-cleanup-3".
>>
>> -Alex
>>
>>> 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()
This series looks good.
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
prev parent reply other threads:[~2013-04-30 19:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=518017DC.1000002@inktank.com \
--to=josh.durgin@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=elder@inktank.com \
/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.