linux/io_uring
Gabriel Krisman Bertazi f74c746e47 io_uring/kbuf: Allow the full buffer id space for provided buffers
nbufs tracks the number of buffers and not the last bgid. In 16-bit, we
have 2^16 valid buffers, but the check mistakenly rejects the last
bid. Let's fix it to make the interface consistent with the
documentation.

Fixes: ddf0322db79c ("io_uring: add IORING_OP_PROVIDE_BUFFERS")
Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Link: https://lore.kernel.org/r/20231005000531.30800-3-krisman@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-10-05 08:38:15 -06:00
..
2023-09-28 07:36:00 -06:00
2022-12-07 06:47:13 -07:00
2023-09-21 12:04:45 -06:00
2023-08-11 10:42:57 -06:00
2023-10-02 18:25:23 -06:00
2023-08-10 10:24:25 -06:00
2023-08-11 10:42:57 -06:00
2023-09-28 07:36:00 -06:00