Skip to content

RFC linux-aio: Convert to coroutines

Kevin Wolf qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest6 patches 3 repliesIn review
  2. v1 RFC3 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- Added patches 4-6 for handling of -EAGAIN and partial submits so that Ming Lei has a comparison to all of his callback-based series

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6qemu-img benchqemu-img-cmds.hx qemu-img.c qemu-img.texi+190 -00 replies
2/6raw-posix: Convert Linux AIO submission to coroutinesblock/linux-aio.c block/raw-aio.h block/raw-posix.c+52 -850 replies
3/6linux-aio: Don't reenter request coroutine recursivelyblock/linux-aio.c+16 -70 replies
4/6linux-aio: Support partial io_submitsblock/linux-aio.c+31 -190 replies
5/6linux-aio: On -EAGAIN, wait for completionsblock/linux-aio.c+13 -100 replies
6/6linux-aio: Queue requests instead of returning -EAGAINblock/linux-aio.c+26 -53 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [RFC PATCH v2 0/6] linux-aio: Convert to coroutines

This is my current branch for converting the linux-aio interface to coroutines. I started this as a performance optimisation, but I think it also makes it much easier to avoid the recursive coroutine reentrace that Ming Lei has sent a relatively complex callback-based patch for. See patch 3 for a quick attempt on fixing the same problem in a coroutine-based linux-aio implementation.

Not ready to be merged mainly because of incomplete testing and benchmarking.

v2:
- Added patches 4-6 for handling of -EAGAIN and partial submits so that Ming Lei has a comparison to all of his callback-based series

Kevin Wolf (6):
qemu-img bench
raw-posix: Convert Linux AIO submission to coroutines
linux-aio: Don't reenter request coroutine recursively
linux-aio: Support partial io_submits
linux-aio: On -EAGAIN, wait for completions
linux-aio: Queue requests instead of returning -EAGAIN

 block/linux-aio.c | 159 +++++++++++++++++++++++++++----------------------
 block/raw-aio.h   |   5 +-
 block/raw-posix.c |  62 +++++++++----------
 qemu-img-cmds.hx  |   6 ++
 qemu-img.c        | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 qemu-img.texi     |  10 ++++
 6 files changed, 309 insertions(+), 107 deletions(-)
Signature · 1 line
1.8.3.1