block: fix block I/O throtting with IDE
PATCH 1/1 block: fix block I/O throtting with IDE
From: Zhi Yong Wu <[email protected]>
The patch is based on the latest QEMU upstream. If you will backport the patchset to QEMU 1.0, pls note the difference.
--- block.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
block.c +6 -0
@@ -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 */
Signature · 1 line
1.7.6
Am 19.02.2012 16:16, schrieb [email protected]:
Quoted 3 lines
From: Zhi Yong Wu <[email protected]>
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
Quoted 23 lines
Signed-off-by Zhi Yong Wu <[email protected]>--- block.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)block.c +6
-0@@ -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 */
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 2 lines · [email protected] writes:
The patch is based on the latest QEMU upstream. If you will backport the patchset to QEMU 1.0, pls note the difference.
I would indeed quite like to backport this to qemu 1.0! Am I right in thinking the sanest way to do this is to apply 922453bca6a9 to bring all the relevant qemu_aio_flush() calls through the same place before I apply your patch?
Best wishes,
Chris.
Quoted 8 lines · Andreas Färber
Am 19.02.2012 16:16, schrieb [email protected]:
Quoted 3 lines
From: Zhi Yong Wu <[email protected]>
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.
nice ,thinks.
Quoted 2 lines
And if this is to be fixed on stable-1.0, please cc qemu-stable.
This is not for stable-1.0
Quoted 30 lines
Andreas
Quoted 13 lines
Signed-off-by Zhi Yong Wu <[email protected]>---
block.c | 6 ++++++1 files changed, 6 insertions(+), 0 deletions(-)block.c +0
-0@@ -863,6 +863,12 @@ void bdrv_drain_all(void) { BlockDriverState *bs;block.c void bdrv_drain_all(void) · line 874
Quoted 10 lines
block.c +6
-0+ 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
Signature · 3 lines
Regards, Zhi Yong Wu
Quoted 9 lines · Chris Webb
Quoted 2 lines · [email protected] writes:
The patch is based on the latest QEMU upstream. If you will backport the patchset to QEMU 1.0, pls note the difference.
I would indeed quite like to backport this to qemu 1.0! Am I right in thinking the sanest way to do this is to apply
922453bca6a9to bring all the relevantqemu_aio_flush()calls through the same place before I apply your patch?
For how to backport it to qemu 1.0, i don't know how to help you, sorry.
Quoted 4 lines
Best wishes,
Chris.
Signature · 3 lines
Regards, Zhi Yong Wu
Quoted 6 lines · Zhi Yong Wu
Quoted 4 lines · Chris Webb
I would indeed quite like to backport this to qemu 1.0! Am I right in thinking the sanest way to do this is to apply
922453bca6a9to bring all the relevantqemu_aio_flush()calls through the same place before I apply your patch?For how to backport it to qemu 1.0, i don't know how to help you, sorry.
For the list archives: the patches backport fine to qemu 1.0 with on top of cherry-picked 922453bca6a9, dbffbdcfff69, e8ee5e4c476d.
Time for us to test them a bit...
Cheers,
Chris.