From: Yehuda Sadeh Weinraub <yehudasa@gmail.com>
To: Christian Brunner <c.m.brunner@gmail.com>
Cc: kwolf@redhat.com, Stefan Hajnoczi <stefanha@gmail.com>,
ceph-devel@vger.kernel.org, qemu-devel@nongnu.org,
kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [PATCH] ceph/rbd block driver for qemu-kvm (v7)
Date: Mon, 15 Nov 2010 09:10:08 -0800 [thread overview]
Message-ID: <AANLkTi=w3XNhBeWE4E9b08gijYdR81mWZ4M9fubm8kJ+@mail.gmail.com> (raw)
In-Reply-To: <AANLkTik0=3tDxu+PMA-JzGwLaCYRGQfRugm36h3L=xvn@mail.gmail.com>
On Mon, Nov 15, 2010 at 9:04 AM, Christian Brunner
<c.m.brunner@gmail.com> wrote:
> Hi Stefan,
>
> thanks for your feedback. Yehuda and Sage have already committed some
> pathes to our git repository.
>
> What I'm not sure about is the rados_(de)initialization for multiple
> rbd images. I suspect that _deinitialize should only be called for the
> last rbd image.
>
> Yehuda and Sage know librados a lot better than me. I pretty sure,
> that they will give some feedback about this remaining issue. After
> that we will send an updated patch.
>
> Regards,
> Christian
>
> 2010/11/11 Stefan Hajnoczi <stefanha@gmail.com>:
>> On Fri, Oct 15, 2010 at 8:54 PM, Christian Brunner <chb@muc.de> wrote:
>>> [...]
>>> +
>>> + if ((r = rados_initialize(0, NULL)) < 0) {
>>> + error_report("error initializing");
>>> + return r;
>>> + }
>>
>> Does rados_initialize() work when called multiple times? This would happen if
>> the VM has several rbd devices attached.
>>
>> [...]
>>
>> Stefan
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
The rados (de)initialization is refcounted and it is safe to call it
multiple times.
prev parent reply other threads:[~2010-11-15 17:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 19:54 [Qemu-devel] [PATCH] ceph/rbd block driver for qemu-kvm (v7) Christian Brunner
2010-11-01 21:47 ` [Qemu-devel] " Sage Weil
2010-11-11 21:09 ` Stefan Hajnoczi
2010-11-15 17:04 ` Christian Brunner
2010-11-15 17:10 ` Yehuda Sadeh Weinraub [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='AANLkTi=w3XNhBeWE4E9b08gijYdR81mWZ4M9fubm8kJ+@mail.gmail.com' \
--to=yehudasa@gmail.com \
--cc=c.m.brunner@gmail.com \
--cc=ceph-devel@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).