Searched hist:cc0681c45430a1f1a4c2d06e9499b7775afc9a18 (Results 1 – 5 of 5) sorted by relevance
/openbmc/qemu/block/ |
H A D | qapi.c | diff cc0681c45430a1f1a4c2d06e9499b7775afc9a18 Mon Sep 02 07:14:39 CDT 2013 Benoît Canet <benoit@irqsave.net> block: Enable the new throttling code in the block layer.
Signed-off-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
/openbmc/qemu/include/block/ |
H A D | block.h | diff cc0681c45430a1f1a4c2d06e9499b7775afc9a18 Mon Sep 02 07:14:39 CDT 2013 Benoît Canet <benoit@irqsave.net> block: Enable the new throttling code in the block layer.
Signed-off-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
H A D | block_int.h | diff cc0681c45430a1f1a4c2d06e9499b7775afc9a18 Mon Sep 02 07:14:39 CDT 2013 Benoît Canet <benoit@irqsave.net> block: Enable the new throttling code in the block layer.
Signed-off-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
/openbmc/qemu/ |
H A D | block.c | diff 0b06ef3bdd17742ae50c0662d3fe8ed944648890 Tue Nov 26 09:18:00 CST 2013 Stefan Hajnoczi <stefanha@redhat.com> block: clean up bdrv_drain_all() throttling comments
Since cc0681c45430a1f1a4c2d06e9499b7775afc9a18 ("block: Enable the new throttling code in the block layer.") bdrv_drain_all() no longer spins. The code used to look as follows:
do { busy = qemu_aio_wait();
/* FIXME: We do not have timer support here, so this is effectively * a busy wait. */ QTAILQ_FOREACH(bs, &bdrv_states, list) { while (qemu_co_enter_next(&bs->throttled_reqs)) { busy = true; } } } while (busy);
Note that throttle requests are kicked but I/O throttling limits are still in effect. The loop spins until the vm_clock time allows the request to make progress and complete.
The new throttling code introduced bdrv_start_throttled_reqs(). This function not only kicks throttled requests but also temporarily disables throttling so requests can run.
The outdated FIXME comment can be removed. Also drop the busy = true assignment since we overwrite it immediately afterwards.
Reviewed-by: Alex Bligh <alex@alex.org.uk> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> diff cc0681c45430a1f1a4c2d06e9499b7775afc9a18 Mon Sep 02 07:14:39 CDT 2013 Benoît Canet <benoit@irqsave.net> block: Enable the new throttling code in the block layer.
Signed-off-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
H A D | blockdev.c | diff cc0681c45430a1f1a4c2d06e9499b7775afc9a18 Mon Sep 02 07:14:39 CDT 2013 Benoît Canet <benoit@irqsave.net> block: Enable the new throttling code in the block layer.
Signed-off-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|