linux-aio/io-uring: Resubmit tails of short requests
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
- v2 Latest3 patches 1 replyApplied
- v13 patches 12 repliesSuperseded
Changes in v2 from the cover letter
- Patch 1 (kept R-b):
- Put all 32-bit fields together
- Removed unnecessary parentheses
- Patch 2 (kept R-b):
- make qemu_iovec_destroy() call contingent on qiov.iov being non-NULL
- include total_done in offset in laio_do_submit()
- Patch 3 (kept R-b):
- make qemu_iovec_destroy() call contingent on qiov.iov being non-NULL
- include total_done in offset in luring_prep_sqe()
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | linux-aio: Put all parameters into qemu_laiocbblock/ | +22 | 0 replies | |
| 2/3 | linux-aio: Resubmit tails of short reads/writesblock/ | +50 | 0 replies | |
| 3/3 | io-uring: Resubmit tails of short writesblock/ block/ | +46 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Kevin Wolf |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH for-11.0 v2 0/3] linux-aio/io-uring: Resubmit tails of short requests
Hi,
v1 is here:
https://lists.nongnu.org/archive/html/qemu-block/2026-03/msg00307.html
Short reads and writes can happen. One way to reproduce them is via FUSE export, if you force it to limit the request length in the read/write path (patch in the commit messages of patches 2 and 3), but specifically short writes apparently can also happen with NFS.
For the file-posix block driver, aio=threads already takes care of them. aio=native does not, at all, and aio=io_uring only handles short reads, but not writes. This series has both aio=native and aio=io_uring handle both short reads and writes. zone-append is not touched, as I don’t believe resubmitting the tail (if a short append can even happen) is safe.
v2:
- Patch 1 (kept R-b):
- Put all 32-bit fields together
- Removed unnecessary parentheses
- Patch 2 (kept R-b):
- make qemu_iovec_destroy() call contingent on qiov.iov being non-NULL
- include total_done in offset in laio_do_submit()
- Patch 3 (kept R-b):
- make qemu_iovec_destroy() call contingent on qiov.iov being non-NULL
- include total_done in offset in luring_prep_sqe()
git-backport-diff against v1:
Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively
001/3:[0007] [FC] 'linux-aio: Put all parameters into qemu_laiocb' 002/3:[0017] [FC] 'linux-aio: Resubmit tails of short reads/writes' 003/3:[0023] [FC] 'io-uring: Resubmit tails of short writes'
Hanna Czenczek (3):
linux-aio: Put all parameters into qemu_laiocb
linux-aio: Resubmit tails of short reads/writes
io-uring: Resubmit tails of short writes
block/io_uring.c | 82 +++++++++++++++++++++++------------------- block/linux-aio.c | 88 +++++++++++++++++++++++++++++++++++++--------- block/trace-events | 2 +- 3 files changed, 117 insertions(+), 55 deletions(-)
Signature · 1 line
2.53.0