qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] virtio-scsi: stop using aio_disable_external() during unplug
@ 2023-03-23 18:56 Stefan Hajnoczi
  2023-03-23 18:56 ` [PATCH 1/2] virtio-scsi: avoid race between unplug and transport event Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2023-03-23 18:56 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Michael S. Tsirkin, Fam Zheng, kwolf, qemu-block,
	Stefan Hajnoczi

The aio_disable_external() API is a solution for stopping I/O during critical
sections. The newer BlockDevOps->drained_begin/end/poll() callbacks offer a
cleaner solution that supports the upcoming multi-queue block layer. This
series removes aio_disable_external() from the virtio-scsi emulation code.

Patch 1 is a fix for something I noticed when reading the code.

Patch 2 replaces aio_disable_external() with functionality for safe hot unplug
that's mostly already present in the SCSI emulation code.

Stefan Hajnoczi (2):
  virtio-scsi: avoid race between unplug and transport event
  virtio-scsi: stop using aio_disable_external() during unplug

 hw/scsi/scsi-bus.c    |  3 ++-
 hw/scsi/scsi-disk.c   |  1 +
 hw/scsi/virtio-scsi.c | 21 +++++++++------------
 3 files changed, 12 insertions(+), 13 deletions(-)

-- 
2.39.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-04 10:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-23 18:56 [PATCH 0/2] virtio-scsi: stop using aio_disable_external() during unplug Stefan Hajnoczi
2023-03-23 18:56 ` [PATCH 1/2] virtio-scsi: avoid race between unplug and transport event Stefan Hajnoczi
2023-03-23 18:56 ` [PATCH 2/2] virtio-scsi: stop using aio_disable_external() during unplug Stefan Hajnoczi
2023-04-04 10:21 ` [PATCH 0/2] " Daniil Tatianin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).