Fix aio cancellation with synthetic aiocbs
Status from this message: Applied all. Thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Refactor aio callback allocation to use an aiocb poolblock.c block_int.h | +40 | 0 replies | |
| 2/5 | Convert vectored aio emulation to use a dedicated poolblock.c | +14 | 3 replies | |
| 3/5 | Implement cancellation method for dma async I/Odma-helpers.c dma.h vl.c | +16 | 0 replies | |
| 4/5 | Use vectored aiocb storage to store vector translation stateblock.c | +14 | 0 replies | |
| 5/5 | Move block dma helpers aiocb to store dma statedma-helpers.c | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)