Skip to content

Fix aio cancellation with synthetic aiocbs

Avi Kivity qemu-devel 1 version Applied

Status from this message: Applied all. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5Refactor aio callback allocation to use an aiocb poolblock.c block_int.h+40 -160 replies
2/5Convert vectored aio emulation to use a dedicated poolblock.c+14 -63 replies
3/5Implement cancellation method for dma async I/Odma-helpers.c dma.h vl.c+16 -10 replies
4/5Use vectored aiocb storage to store vector translation stateblock.c+14 -150 replies
5/5Move block dma helpers aiocb to store dma statedma-helpers.c+20 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] Fix aio cancellation with synthetic aiocbs

The block layer will currently break with synthetic aiocbs, since it will forward the cancellation request to the block format driver, which did not generate the synthetic aiocbs.

This patchset fixes the problem by associating a cancellation method with synthetic aiocbs through a aio pool data structure. This structure contains information common to a class of aiocbs - size, cancellation method, and free list.

Avi Kivity (5):
Refactor aio callback allocation to use an aiocb pool Convert vectored aio emulation to use a dedicated pool Implement cancellation method for dma async I/O Use vectored aiocb storage to store vector translation state Move block dma helpers aiocb to store dma state

 block.c       |   79 +++++++++++++++++++++++++++++++++++---------------------
 block_int.h   |   14 +++++++++-
 dma-helpers.c |   44 +++++++++++++++++++++----------
 dma.h         |    1 +
 vl.c          |    1 +
 5 files changed, 94 insertions(+), 45 deletions(-)