[Qemu-devel] [PATCH v2] virtio-scsi: fixed virtio_scsi_ctx_check failed when detaching scsi disk

2019-07-22 Thread Paolo Bonzini
From: Zhengui li commit a6f230c move blockbackend back to main AioContext on unplug. It set the AioContext of SCSIDevice to the main AioContex, but s->ctx is still the iothread AioContex(if the scsi controller is configure with iothread). So if there are having in-flight requests during un

Re: [Qemu-devel] [PATCH v2] virtio-scsi: fixed virtio_scsi_ctx_check failed when detaching scsi disk

2019-07-22 Thread Paolo Bonzini
On 21/07/19 10:08, l00284672 wrote: > commit a6f230c move blockbackend back to main AioContext on unplug. It set > the AioContext of > SCSIDevice to the main AioContex, but s->ctx is still the iothread > AioContex(if the scsi controller > is configure with iothread). So if there are having in-fli

[Qemu-devel] [PATCH v2] virtio-scsi: fixed virtio_scsi_ctx_check failed when detaching scsi disk

2019-07-21 Thread l00284672
commit a6f230c move blockbackend back to main AioContext on unplug. It set the AioContext of SCSIDevice to the main AioContex, but s->ctx is still the iothread AioContex(if the scsi controller is configure with iothread). So if there are having in-flight requests during unplug, a failing asserti