Commit cf9536e5 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarNorman Maurer <norman_maurer@apple.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 334f795f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment