aboutsummaryrefslogtreecommitdiff
path: root/block/iscsi.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-07-02 10:45:54 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-07-15 11:20:42 +0200
commit00e3cccdf413eb1093d8e9f26588da0fc82fa55f (patch)
tree8aa15803b0b288f7aa818a08aaf21cdbd51bb764 /block/iscsi.c
parent396ce7b94eef57194740347a011b9bed355e39b2 (diff)
downloadqemu-00e3cccdf413eb1093d8e9f26588da0fc82fa55f.zip
qemu-00e3cccdf413eb1093d8e9f26588da0fc82fa55f.tar.gz
qemu-00e3cccdf413eb1093d8e9f26588da0fc82fa55f.tar.bz2
iscsi: fix busy/timeout/task set full
In this case, do_retry was set without calling aio_co_wake, thus never waking up the coroutine. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block/iscsi.c')
-rw-r--r--block/iscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/iscsi.c b/block/iscsi.c
index 267f160..6e238bf 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -272,7 +272,7 @@ iscsi_co_generic_cb(struct iscsi_context *iscsi, int status,
timer_mod(&iTask->retry_timer,
qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + retry_time);
iTask->do_retry = 1;
- return;
+ goto out;
}
}
iTask->err_code = iscsi_translate_sense(&task->sense);