Skip to content

RFC aio: AIO_CONTEXT_ACQUIRE_GUARD() macro experiment

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block/aio: Add automatically released aio_context variantsinclude/block/aio.h+24 -00 replies
2/4hw/scsi/scsi-disk: Use automatic AIO context lockhw/scsi/scsi-disk.c+4 -91 reply
3/4hw/scsi/scsi-generic: Use automatic AIO context lockhw/scsi/scsi-generic.c+3 -30 replies
4/4hw/block/virtio-blk: Use automatic AIO context lockhw/block/virtio-blk.c+12 -140 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchDr. David Alan Gilbert
1/4Inspired-by
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/4] aio: AIO_CONTEXT_ACQUIRE_GUARD() macro experiment

Experiment to use glib g_autoptr/autofree features with AIO context.
Since this is a RFC, only few examples are provided.

TODO: Document the macros in docs/devel/multiple-iothreads.txt

Philippe Mathieu-Daudé (4):
block/aio: Add automatically released aio_context variants hw/scsi/scsi-disk: Use automatic AIO context lock hw/scsi/scsi-generic: Use automatic AIO context lock hw/block/virtio-blk: Use automatic AIO context lock

 include/block/aio.h    | 24 ++++++++++++++++++++++++
 hw/block/virtio-blk.c  | 26 ++++++++++++--------------
 hw/scsi/scsi-disk.c    | 13 ++++---------
 hw/scsi/scsi-generic.c |  6 +++---
 4 files changed, 43 insertions(+), 26 deletions(-)
Signature · 1 line
2.31.1