Skip to content

linux-aio: allow block devices to limit aio-max-batch

Stefano Garzarella qemu-devel 2 versions – Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 7 repliesApplied
  2. v13 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- @aio-max-batch documentation rewrite [Stefan, Kevin]
- added Stefan and Kevin R-b tags

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3file-posix: add `aio-max-batch` optionblock/file-posix.c qapi/block-core.json+16 -06 replies
2/3linux-aio: add `dev_max_batch` parameter to laio_co_submit()block/file-posix.c block/linux-aio.c include/block/raw-aio.h+26 -100 replies
3/3linux-aio: add `dev_max_batch` parameter to laio_io_unplug()block/file-posix.c block/linux-aio.c include/block/raw-aio.h+8 -50 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchKevin WolfStefan Hajnoczi
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] linux-aio: allow block devices to limit aio-max-batch

v1: https://lore.kernel.org/qemu-devel/[email protected]
v2:
- @aio-max-batch documentation rewrite [Stefan, Kevin]
- added Stefan and Kevin R-b tags

Commit d7ddd0a161 ("linux-aio: limit the batch size using aio-max-batch parameter") added a way to limit the batch size of Linux AIO backend for the entire AIO context.

The same AIO context can be shared by multiple devices, so latency-sensitive devices may want to limit the batch size even more to avoid increasing latency.

This series add the aio-max-batch option to the file backend, and use it in laio_co_submit() and laio_io_unplug() to limit the Linux AIO batch size more than the limit set by the AIO context.

Stefano Garzarella (3):
file-posix: add aio-max-batch option
linux-aio: add dev_max_batch parameter to laio_co_submit()
linux-aio: add dev_max_batch parameter to laio_io_unplug()

 qapi/block-core.json    |  7 +++++++
 include/block/raw-aio.h |  6 ++++--
 block/file-posix.c      | 14 ++++++++++++--
 block/linux-aio.c       | 38 +++++++++++++++++++++++++++-----------
 4 files changed, 50 insertions(+), 15 deletions(-)
Signature · 1 line
2.31.1