]> git.ipfire.org Git - thirdparty/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>
Tue, 20 Sep 2016 16:39:39 +0000 (11:39 -0500)
commit6e184753b3c1ba10e4b552805cb00ec8c51560b0
tree87194f1d12a2fbd70a06c7889dd6213cc2299d93
parent469513b38a7ffabea941b607b44f1d9b3d4da3ef
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