qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] block: fix block I/O throtting with IDE
@ 2012-02-19 15:16 zwu.kernel
  2012-02-19 15:40 ` Andreas Färber
  2012-02-19 21:18 ` Chris Webb
  0 siblings, 2 replies; 6+ messages in thread
From: zwu.kernel @ 2012-02-19 15:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: chris, Zhi Yong Wu, stefanha

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-20 10:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).