From: "Andreas Färber" <afaerber@suse.de>
To: zwu.kernel@gmail.com
Cc: Kevin Wolf <kwolf@redhat.com>,
chris@arachsys.com, stefanha@linux.vnet.ibm.com,
qemu-devel@nongnu.org, qemu-stable@nongnu.org,
Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] block: fix block I/O throtting with IDE
Date: Sun, 19 Feb 2012 16:40:47 +0100 [thread overview]
Message-ID: <4F4117FF.5090600@suse.de> (raw)
In-Reply-To: <1329664586-13923-1-git-send-email-zwu.kernel@gmail.com>
Am 19.02.2012 16:16, schrieb zwu.kernel@gmail.com:
> From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
>
> The patch is based on the latest QEMU upstream. If you will backport the patchset to QEMU 1.0, pls note the difference.
"Fix" is never a good patch description. ;) In place of the above
sentence, which does not tell us what the actual difference is, please
describe in which way it was broken before and what the patch changes.
And if this is to be fixed on stable-1.0, please cc qemu-stable.
Andreas
>
> Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
> ---
> block.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/block.c b/block.c
> index ae297bb..07cd143 100644
> --- a/block.c
> +++ b/block.c
> @@ -863,6 +863,12 @@ void bdrv_drain_all(void)
> {
> BlockDriverState *bs;
>
> + QTAILQ_FOREACH(bs, &bdrv_states, list) {
> + if (!qemu_co_queue_empty(&bs->throttled_reqs)) {
> + qemu_co_queue_restart_all(&bs->throttled_reqs);
> + }
> + }
> +
> qemu_aio_flush();
>
> /* If requests are still pending there is a bug somewhere */
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2012-02-19 15:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-19 15:16 [Qemu-devel] [PATCH] block: fix block I/O throtting with IDE zwu.kernel
2012-02-19 15:40 ` Andreas Färber [this message]
2012-02-20 4:27 ` Zhi Yong Wu
2012-02-19 21:18 ` Chris Webb
2012-02-20 4:53 ` Zhi Yong Wu
2012-02-20 10:02 ` Chris Webb
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=4F4117FF.5090600@suse.de \
--to=afaerber@suse.de \
--cc=chris@arachsys.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
--cc=wuzhy@linux.vnet.ibm.com \
--cc=zwu.kernel@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).