Patch "io_uring/net: fix sendzc lazy wake polling" has been added to the 6.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    io_uring/net: fix sendzc lazy wake polling

to the 6.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     io_uring-net-fix-sendzc-lazy-wake-polling.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit fc3cda5abb19518c5069a060a31feec44d4b4f81
Author: Pavel Begunkov <asml.silence@xxxxxxxxx>
Date:   Tue Apr 30 16:42:30 2024 +0100

    io_uring/net: fix sendzc lazy wake polling
    
    [ Upstream commit ef42b85a5609cd822ca0a68dd2bef2b12b5d1ca3 ]
    
    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@xxxxxxxxx>
    Link: https://lore.kernel.org/r/5b360fb352d91e3aec751d75c87dfb4753a084ee.1714488419.git.asml.silence@xxxxxxxxx
    Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/io_uring/net.c b/io_uring/net.c
index d193b87d0a03b..099ab92cca0b7 100644
--- a/io_uring/net.c
+++ b/io_uring/net.c
@@ -1022,6 +1022,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;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux