linux/io_uring
Jens Axboe f274495aea io_uring/kbuf: return correct iovec count from classic buffer peek
io_provided_buffers_select() returns 0 to indicate success, but it should
be returning 1 to indicate that 1 vec was mapped. This causes peeking
to fail with classic provided buffers, and while that's not a use case
that anyone should use, it should still work correctly.

The end result is that no buffer will be selected, and hence a completion
with '0' as the result will be posted, without a buffer attached.

Fixes: 35c8711c8f ("io_uring/kbuf: add helpers for getting/peeking multiple buffers")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-08-30 10:45:54 -06:00
..
Makefile
advise.c
advise.h
alloc_cache.h
cancel.c
cancel.h
epoll.c
epoll.h
eventfd.c
eventfd.h
fdinfo.c
fdinfo.h
filetable.c
filetable.h
fs.c
fs.h
futex.c
futex.h
io-wq.c
io-wq.h
io_uring.c io_uring/napi: pass ktime to io_napi_adjust_timeout 2024-07-26 08:31:59 -06:00
io_uring.h io_uring/napi: use ktime in busy polling 2024-07-26 08:31:59 -06:00
kbuf.c io_uring/kbuf: return correct iovec count from classic buffer peek 2024-08-30 10:45:54 -06:00
kbuf.h
memmap.c
memmap.h
msg_ring.c io_uring/msg_ring: fix uninitialized use of target_req->flags 2024-07-25 08:41:35 -06:00
msg_ring.h
napi.c io_uring/napi: remove duplicate io_napi_entry timeout assignation 2024-08-12 12:11:42 -06:00
napi.h io_uring/napi: check napi_enabled in io_napi_add() before proceeding 2024-08-12 12:09:03 -06:00
net.c io_uring/net: don't pick multiple buffers for non-bundle send 2024-08-07 15:20:52 -06:00
net.h
nop.c
nop.h
notif.c
notif.h
opdef.c
opdef.h
openclose.c
openclose.h
poll.c io_uring: keep multishot request NAPI timeout current 2024-07-30 06:18:58 -06:00
poll.h
refs.h
register.c
register.h
rsrc.c io_uring/rsrc: ensure compat iovecs are copied correctly 2024-08-30 07:52:43 -06:00
rsrc.h
rw.c
rw.h
slist.h
splice.c
splice.h
sqpoll.c io_uring/sqpoll: annotate debug task == current with data_race() 2024-08-13 06:10:59 -06:00
sqpoll.h
statx.c
statx.h
sync.c
sync.h
tctx.c
tctx.h
timeout.c io_uring: fix io_match_task must_hold 2024-07-24 08:01:49 -06:00
timeout.h
truncate.c
truncate.h
uring_cmd.c io_uring: simplify io_uring_cmd return 2024-07-24 08:01:49 -06:00
uring_cmd.h
waitid.c
waitid.h
xattr.c
xattr.h