qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: zwu.kernel@gmail.com
To: qemu-devel@nongnu.org
Cc: chris@arachsys.com, Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>,
	stefanha@linux.vnet.ibm.com
Subject: [Qemu-devel] [PATCH] block: fix block I/O throtting with IDE
Date: Sun, 19 Feb 2012 23:16:26 +0800	[thread overview]
Message-ID: <1329664586-13923-1-git-send-email-zwu.kernel@gmail.com> (raw)

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.

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 */
-- 
1.7.6

             reply	other threads:[~2012-02-19 15:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-19 15:16 zwu.kernel [this message]
2012-02-19 15:40 ` [Qemu-devel] [PATCH] block: fix block I/O throtting with IDE Andreas Färber
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=1329664586-13923-1-git-send-email-zwu.kernel@gmail.com \
    --to=zwu.kernel@gmail.com \
    --cc=chris@arachsys.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@linux.vnet.ibm.com \
    --cc=wuzhy@linux.vnet.ibm.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).