Re: [Qemu-devel] [PATCH v2 2/2] virtio-scsi: fix hotplug ->reset() vs event race

2018-07-16 Thread Paolo Bonzini
On 16/07/2018 14:40, Michael S. Tsirkin wrote: > On Mon, Jul 16, 2018 at 09:37:32AM +0100, Stefan Hajnoczi wrote: >> There is a race condition during hotplug when iothread is used. It >> occurs because virtio-scsi may be processing command queues in the >> iothread while the monitor performs SCSI

Re: [Qemu-devel] [PATCH v2 2/2] virtio-scsi: fix hotplug ->reset() vs event race

2018-07-16 Thread Michael S. Tsirkin
On Mon, Jul 16, 2018 at 09:37:32AM +0100, Stefan Hajnoczi wrote: > There is a race condition during hotplug when iothread is used. It > occurs because virtio-scsi may be processing command queues in the > iothread while the monitor performs SCSI device hotplug. > > When a SCSI device is hotplugge

[Qemu-devel] [PATCH v2 2/2] virtio-scsi: fix hotplug ->reset() vs event race

2018-07-16 Thread Stefan Hajnoczi
There is a race condition during hotplug when iothread is used. It occurs because virtio-scsi may be processing command queues in the iothread while the monitor performs SCSI device hotplug. When a SCSI device is hotplugged the HotplugHandler->plug() callback is invoked and virtio-scsi emits a re