]> git.ipfire.org Git - thirdparty/qemu.git/commit
iscsi: fix deadlock during login
authorPeter Lieven <pl@dlhnet.de>
Sat, 17 Nov 2012 13:37:39 +0000 (14:37 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 3 Dec 2012 21:02:28 +0000 (15:02 -0600)
commit707f2b69ff97820f345e509f68155e265c7e45a4
tree6430f35176cd97b10b6908f7657e2a6f72aa4728
parent972a2bf07287e4a9a4a7bd03d4e9af5d4259baef
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>
(cherry picked from commit e829b0bb054ed3389e5b22dad61875e51674e629)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/iscsi.c