projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e67645b
)
io_uring/net: use passed in 'len' in io_recv_buf_select()
author
Jens Axboe
<axboe@kernel.dk>
Tue, 8 Jul 2025 01:36:57 +0000
(19:36 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 10 Jul 2025 17:54:08 +0000
(11:54 -0600)
len is a pointer to the desired len, use that rather than grab it from
sr->len again. No functional changes as of this patch, but it does
prepare io_recv_buf_select() for getting passed in a value that differs
from sr->len.
Link:
https://lore.kernel.org/io-uring/20250709203420.1321689-3-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c
patch
|
blob
|
blame
|
history
diff --git
a/io_uring/net.c
b/io_uring/net.c
index 43a43522f406b19a28582a2ac01e4d5d195c9c10..b448b165ad96096c3da1e01ae3d868fc2048878f 100644
(file)
--- a/
io_uring/net.c
+++ b/
io_uring/net.c
@@
-1076,7
+1076,7
@@
static int io_recv_buf_select(struct io_kiocb *req, struct io_async_msghdr *kmsg
}
if (kmsg->msg.msg_inq > 1)
- arg.max_len = min_not_zero(
sr->
len, kmsg->msg.msg_inq);
+ arg.max_len = min_not_zero(
*
len, kmsg->msg.msg_inq);
ret = io_buffers_peek(req, &arg);
if (unlikely(ret < 0))