Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/net: combine sendzc flags writes

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>

authored by

Pavel Begunkov and committed by
Jens Axboe
c55e2845 5f364117

+1 -2
+1 -2
io_uring/net.c
··· 1291 1291 1292 1292 zc->done_io = 0; 1293 1293 zc->retry = false; 1294 - req->flags |= REQ_F_POLL_NO_LAZY; 1295 1294 1296 1295 if (unlikely(READ_ONCE(sqe->__pad2[0]) || READ_ONCE(sqe->addr3))) 1297 1296 return -EINVAL; ··· 1304 1305 notif->cqe.user_data = req->cqe.user_data; 1305 1306 notif->cqe.res = 0; 1306 1307 notif->cqe.flags = IORING_CQE_F_NOTIF; 1307 - req->flags |= REQ_F_NEED_CLEANUP; 1308 + req->flags |= REQ_F_NEED_CLEANUP | REQ_F_POLL_NO_LAZY; 1308 1309 1309 1310 zc->flags = READ_ONCE(sqe->ioprio); 1310 1311 if (unlikely(zc->flags & ~IO_ZC_FLAGS_COMMON)) {