block/iscsi: fix deadlock on scsi check condition
commit837c390137193e715fee20b35c0ddb164b1c4fa4
authorPeter Lieven <pl@kamp.de>
Tue, 18 Feb 2014 12:08:39 +0000 (18 13:08 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 22 Feb 2014 09:02:23 +0000 (22 10:02 +0100)
tree36392a7bb613be04a945503f4b0bdb3b0f7f7d17
parent7ef8cf9a0861b6f67f5e57428478c31bfd811651
block/iscsi: fix deadlock on scsi check condition

the retry logic was broken because the complete status
of the task structure was not reset. this resulted in
an infinite loop retrying the command over and over.

CC: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c