]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-scsi: don't lock AioContext around virtio_queue_aio_attach_host_notifier()
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 4 Dec 2023 16:42:57 +0000 (11:42 -0500)
committerKevin Wolf <kwolf@redhat.com>
Thu, 21 Dec 2023 21:49:27 +0000 (22:49 +0100)
commit765ca516069a40e2ea7081997a508892db084c8e
treef852f77b99a9caad71491ae0b951c9de748b9706
parenteaad0fe26050c227dc5dad63205835bac4912a51
virtio-scsi: don't lock AioContext around virtio_queue_aio_attach_host_notifier()

virtio_queue_aio_attach_host_notifier() does not require the AioContext
lock. Stop taking the lock and add an explicit smp_wmb() because we were
relying on the implicit barrier in the AioContext lock before.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20231204164259.1515217-3-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi/virtio-scsi-dataplane.c