Re: [PATCH] virtio-scsi: avoid dangling host notifier in ->ioeventfd_stop()

2023-06-11 Thread Stefan Hajnoczi
Buglink: https://gitlab.com/qemu-project/qemu/-/issues/1680 On Sun, Jun 11, 2023, 15:39 Stefan Hajnoczi wrote: > virtio_scsi_dataplane_stop() calls blk_drain_all(), which invokes > ->drained_begin()/->drained_end() after we've already detached the host > notifier. virtio_scsi_drained_end() curre

[PATCH] virtio-scsi: avoid dangling host notifier in ->ioeventfd_stop()

2023-06-11 Thread Stefan Hajnoczi
virtio_scsi_dataplane_stop() calls blk_drain_all(), which invokes ->drained_begin()/->drained_end() after we've already detached the host notifier. virtio_scsi_drained_end() currently attaches the host notifier again and leaves it dangling after dataplane has stopped. This results in the following