From: Max Reitz <mreitz@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 1/3] nbd: Drop BDS backpointer
Date: Tue, 03 Feb 2015 08:54:20 -0500 [thread overview]
Message-ID: <54D0D30C.5080602@redhat.com> (raw)
In-Reply-To: <54D088AC.8030607@redhat.com>
On 2015-02-03 at 03:37, Paolo Bonzini wrote:
>
> On 02/02/2015 22:40, Max Reitz wrote:
>> Before this patch, the "opaque" pointer in an NBD BDS points to a
>> BDRVNBDState, which contains an NbdClientSession object, which in turn
>> contains a pointer to the BDS. This pointer may become invalid due to
>> bdrv_swap(), so drop it, and instead pass the BDS directly to the
>> nbd-client.c functions which then retrieve the NbdClientSession object
>> from there.
> Looks good, but please change function names from nbd_client_session_foo
> to nbd_client_foo or even just nbd_foo if they do not take an
> NbdClientSession* as the first parameter.
Ah, that makes a lot of sense, especially concerning the callback
functions (albeit they were named nbd_foo already, but well...) which
only take a void pointer.
Will do, thanks,
Max
> Thanks,
>
> Paolo
next prev parent reply other threads:[~2015-02-03 13:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-02 21:40 [Qemu-devel] [PATCH 0/3] nbd: Drop BDS backpointer Max Reitz
2015-02-02 21:40 ` [Qemu-devel] [PATCH 1/3] " Max Reitz
2015-02-03 8:37 ` Paolo Bonzini
2015-02-03 13:54 ` Max Reitz [this message]
2015-02-02 21:40 ` [Qemu-devel] [PATCH 2/3] iotests: Add "wait" functionality to _cleanup_qemu Max Reitz
2015-02-03 8:38 ` Paolo Bonzini
2015-02-02 21:40 ` [Qemu-devel] [PATCH 3/3] iotests: Add test for drive-mirror with NBD target Max Reitz
2015-02-03 8:38 ` Paolo Bonzini
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=54D0D30C.5080602@redhat.com \
--to=mreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).