]> git.proxmox.com Git - mirror_qemu.git/commit - block/iscsi.c
iscsi: Create and use iscsi_co_wait_for_task
authorFam Zheng <famz@redhat.com>
Fri, 1 Jun 2018 09:26:45 +0000 (17:26 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 1 Jun 2018 13:41:48 +0000 (14:41 +0100)
commit66e75c03b2247bda6dcaa883b700291bc0f7f0ef
tree5d973af344afd1e6b4d6a4fe176faa990e531c19
parentcc9743c236cce8a35449e3ef67140287b68bb705
iscsi: Create and use iscsi_co_wait_for_task

This loop is repeated a growing number times. Make a helper.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180601092648.24614-8-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/iscsi.c