1 From d1ca17e6bfcf8292b85474cc871e015088672df4 Mon Sep 17 00:00:00 2001
2 From: Alexandre Derumier <aderumier@odiso.com>
3 Date: Wed, 1 Jul 2015 05:07:06 +0200
4 Subject: [PATCH] increase block_job_sleep_ns time to SLICE_TIME
6 current value 0 is really too short to avoid qmp hangs
8 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 1 file changed, 1 insertion(+), 1 deletion(-)
13 diff --git a/block/mirror.c b/block/mirror.c
14 index 0a05971..2711249 100644
17 @@ -442,7 +442,7 @@ static void coroutine_fn mirror_run(void *opaque)
19 if (now - last_pause_ns > SLICE_TIME) {
21 - block_job_sleep_ns(&s->common, QEMU_CLOCK_REALTIME, 0);
22 + block_job_sleep_ns(&s->common, QEMU_CLOCK_REALTIME, SLICE_TIME/10);
25 if (block_job_is_cancelled(&s->common)) {