io_uring/kbuf: enable bundles for incrementally consumed buffers
authorJens Axboe <axboe@kernel.dk>
Mon, 10 Mar 2025 20:01:49 +0000 (14:01 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Mar 2025 22:24:43 +0000 (16:24 -0600)
commitcf9536e550dd243a1681fdbf804221527da20a80
treebe1cf654c89edf8221784d44b61bc676e954cc7a
parent334f795ff8fc061db448d205a252880a19d7c045
io_uring/kbuf: enable bundles for incrementally consumed buffers

The original support for incrementally consumed buffers didn't allow it
to be used with bundles, with the assumption being that incremental
buffers are generally larger, and hence there's less of a nedd to
support it.

But that assumption may not be correct - it's perfectly viable to use
smaller buffers with incremental consumption, and there may be valid
reasons for an application or framework to do so.

As there's really no need to explicitly disable bundles with
incrementally consumed buffers, allow it. This actually makes the peek
side cheaper and simpler, with the completion side basically the same,
just needing to iterate for the consumed length.

Reported-by: Norman Maurer <norman_maurer@apple.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c