Re: [for-6.1 3/4] virtio-scsi: Set host notifiers and callbacks separately

2021-05-05 Thread Stefan Hajnoczi
On Wed, Apr 07, 2021 at 04:35:00PM +0200, Greg Kurz wrote: > Host notifiers are guaranteed to be idle until the callbacks are > hooked up with virtio_queue_aio_set_host_notifier_handler(). They > thus don't need to be set or unset with the AioContext lock held. > > Do this outside the critical sec

[for-6.1 3/4] virtio-scsi: Set host notifiers and callbacks separately

2021-04-07 Thread Greg Kurz
Host notifiers are guaranteed to be idle until the callbacks are hooked up with virtio_queue_aio_set_host_notifier_handler(). They thus don't need to be set or unset with the AioContext lock held. Do this outside the critical section, like virtio-blk already does : basically downgrading virtio_scs