]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-scsi: Don't abort when media is ejected
authorFam Zheng <famz@redhat.com>
Wed, 14 Sep 2016 10:17:04 +0000 (18:17 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 2 Nov 2016 21:41:35 +0000 (16:41 -0500)
commitf5436d1daba9d5c50c9dc7240e9561e429c5aac4
tree2bd38ed2a1a1521691965495a468292f1601fd02
parent3550eeafcd0882846edceb95ab3b5be828f89684
virtio-scsi: Don't abort when media is ejected

With an ejected block backend, blk_get_aio_context() would return
qemu_aio_context. In this case don't assert.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1473848224-24809-3-git-send-email-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 2a2d69f490c1b1dc6b6d2aef385ee7b654497a77)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/virtio-scsi.c