From: Max Reitz <mreitz@redhat.com>
To: Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org, Kevin Wolf <kwolf@redhat.com>,
qemu-stable@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 3/5] block: Introduce and make use of blk_new_with_root
Date: Wed, 28 Sep 2016 19:21:18 +0200 [thread overview]
Message-ID: <c84bb28e-9f43-7ec9-b8fa-84ea40a3d53a@redhat.com> (raw)
In-Reply-To: <1474958276-7715-4-git-send-email-famz@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]
On 27.09.2016 08:37, Fam Zheng wrote:
> The idiom of "blk_new() + blk_insert_bs()" is common. Use a new
> BB interface that does both things to make the coming transition that
> adds AioContext to BB easier.
Indeed. It was called blk_new_with_bs() before and I dropped it. :-)
(The difference and the reason why I dropped it was that
blk_new_with_bs() created the BDS, too.)
((And as a side note, this pattern does not come from me dropping
blk_new_with_bs(). As far as I remember, I replaced most places where it
was used by blk_new_open().))
> The added blk_new_with_ctx doesn't handle the passed ctx and is purely
> here to avoid a small code churn.
Maybe add a "yet" in there, i.e. "does not handle the passed ctx yet"?
>
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
> block/backup.c | 3 +--
> block/block-backend.c | 24 ++++++++++++++++++------
> block/commit.c | 12 ++++--------
> block/mirror.c | 3 +--
> blockjob.c | 3 +--
> hmp.c | 3 +--
> hw/core/qdev-properties-system.c | 3 +--
> include/sysemu/block-backend.h | 1 +
> nbd/server.c | 3 +--
> tests/test-blockjob.c | 3 +--
> 10 files changed, 30 insertions(+), 28 deletions(-)
Reviewed-by: Max Reitz <mreitz@redhat.com>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 480 bytes --]
next prev parent reply other threads:[~2016-09-28 17:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-27 6:37 [Qemu-devel] [PATCH v2 0/5] block: keep AioContext pointer in BlockBackend Fam Zheng
2016-09-27 6:37 ` [Qemu-devel] [PATCH v2 1/5] blockdev-mirror: Sanity check before moving target_bs AioContext Fam Zheng
2016-09-28 16:37 ` Max Reitz
2016-09-29 3:14 ` Fam Zheng
2016-09-27 6:37 ` [Qemu-devel] [PATCH v2 2/5] blockdev: Move BDS AioContext before inserting to BB Fam Zheng
2016-09-28 17:09 ` Max Reitz
2016-09-27 6:37 ` [Qemu-devel] [PATCH v2 3/5] block: Introduce and make use of blk_new_with_root Fam Zheng
2016-09-28 17:21 ` Max Reitz [this message]
2016-09-27 6:37 ` [Qemu-devel] [PATCH v2 4/5] migration: Set correct AioContext to BlockBackend Fam Zheng
2016-09-28 17:26 ` Max Reitz
2016-09-27 6:37 ` [Qemu-devel] [PATCH v2 5/5] block: keep AioContext pointer in BlockBackend Fam Zheng
2016-09-28 17:47 ` Max Reitz
2016-09-29 3:05 ` Fam Zheng
2016-09-29 7:47 ` Paolo Bonzini
2016-09-30 5:22 ` Fam Zheng
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=c84bb28e-9f43-7ec9-b8fa-84ea40a3d53a@redhat.com \
--to=mreitz@redhat.com \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@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).