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:
5f36411
)
io_uring/net: combine sendzc flags writes
author
Pavel Begunkov
<asml.silence@gmail.com>
Fri, 28 Mar 2025 23:10:56 +0000
(23:10 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 28 Mar 2025 23:11:20 +0000
(17:11 -0600)
Save an instruction / trip to the cache and assign some of sendzc flags
together.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/c519d6f406776c3be3ef988a8339a88e45d1ffd9.1743202294.git.asml.silence@gmail.com
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 68f87d7c74df6613c9c9218c92971fd46432a80b..ef0faa07627f8add637b57f03e425562fbb06b6b 100644
(file)
--- a/
io_uring/net.c
+++ b/
io_uring/net.c
@@
-1291,7
+1291,6
@@
int io_send_zc_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
zc->done_io = 0;
zc->retry = false;
- req->flags |= REQ_F_POLL_NO_LAZY;
if (unlikely(READ_ONCE(sqe->__pad2[0]) || READ_ONCE(sqe->addr3)))
return -EINVAL;
@@
-1305,7
+1304,7
@@
int io_send_zc_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
notif->cqe.user_data = req->cqe.user_data;
notif->cqe.res = 0;
notif->cqe.flags = IORING_CQE_F_NOTIF;
- req->flags |= REQ_F_NEED_CLEANUP;
+ req->flags |= REQ_F_NEED_CLEANUP
| REQ_F_POLL_NO_LAZY
;
zc->flags = READ_ONCE(sqe->ioprio);
if (unlikely(zc->flags & ~IO_ZC_FLAGS_COMMON)) {