]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
iscsi: fix deadlock during login
authorPeter Lieven <pl@dlhnet.de>
Sat, 17 Nov 2012 13:37:39 +0000 (14:37 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 Nov 2012 11:50:56 +0000 (12:50 +0100)
commite829b0bb054ed3389e5b22dad61875e51674e629
treec381e2ed37aea49734dc2d5fa070a3562715efa5
parent8da1e18b0cf46b6c95c88bbad1cc50d6dd1bef4b
iscsi: fix deadlock during login

If the connection is interrupted before the first login is successfully
completed qemu-kvm is waiting forever in qemu_aio_wait().

This is fixed by performing an sync login to the target. If the
connection breaks after the first successful login errors are
handled internally by libiscsi.

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