Re: [PATCH] virtio-scsi: reset SCSI devices from main loop thread

2023-01-20 Thread Michael S. Tsirkin
On Thu, Jan 19, 2023 at 04:43:26PM -0500, Stefan Hajnoczi wrote: > When an IOThread is configured, the ctrl virtqueue is processed in the > IOThread. TMFs that reset SCSI devices are currently called directly > from the IOThread and trigger an assertion failure in blk_drain(): > >

[PATCH] virtio-scsi: reset SCSI devices from main loop thread

2023-01-19 Thread Stefan Hajnoczi
When an IOThread is configured, the ctrl virtqueue is processed in the IOThread. TMFs that reset SCSI devices are currently called directly from the IOThread and trigger an assertion failure in blk_drain(): ../block/block-backend.c:1780: void blk_drain(BlockBackend *): Assertion