Skip to content

Incrementally consumed buffer fixes

Jens Axboe io-uring stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2io_uring/kbuf: fix missing BUF_MORE for incremental buffers at EOFio_uring/kbuf.c+4 -00 replies
2/2io_uring/kbuf: propagate BUF_MORE through early buffer commit pathinclude/linux/io_uring_types.h io_uring/kbuf.c+10 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCHSET 0/2] Incrementally consumed buffer fixes

Hi,

Michael reported two separate issues with incrementally consumed buffers:

1) In case of EOF, or just a 0-byte read in general, BUF_MORE isn't set. As further completions will happen from the given buffer, it should be set.

2) For non-pollable files, the buffers are consumed upfront, yet BUF_MORE is lost as the commit doesn't happen at completion time.

Fix both of these.

Signature · 1 line
Jens Axboe