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:
a4d416d
)
io_uring/net: fix sendzc lazy wake polling
author
Pavel Begunkov
<asml.silence@gmail.com>
Tue, 30 Apr 2024 15:42:30 +0000
(16:42 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 30 Apr 2024 19:06:27 +0000
(13:06 -0600)
SEND[MSG]_ZC produces multiple CQEs via notifications, LAZY_WAKE doesn't
handle it and so disable LAZY_WAKE for sendzc polling. It should be
fine, sends are not likely to be polled in the first place.
Fixes:
6ce4a93dbb5b
("io_uring/poll: use IOU_F_TWQ_LAZY_WAKE for wakeups")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/5b360fb352d91e3aec751d75c87dfb4753a084ee.1714488419.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 51c41d771c50ee8676c1c3ad4525aaa0cb2a5d3c..503debecad32103b3ec171afc19eb6f908ac9e5e 100644
(file)
--- a/
io_uring/net.c
+++ b/
io_uring/net.c
@@
-1198,6
+1198,7
@@
int io_send_zc_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
struct io_kiocb *notif;
zc->done_io = 0;
+ req->flags |= REQ_F_POLL_NO_LAZY;
if (unlikely(READ_ONCE(sqe->__pad2[0]) || READ_ONCE(sqe->addr3)))
return -EINVAL;