]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: keep multishot request NAPI timeout current
authorOlivier Langlois <olivier@trillion01.com>
Mon, 29 Jul 2024 23:03:33 +0000 (19:03 -0400)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Jul 2024 12:18:58 +0000 (06:18 -0600)
commit2c762be5b798c443612c1bb9b011de4fdaebd1c5
tree8f9e83506998c3d3cba25878518945e72c7e5921
parent358169617602f6f71b31e5c9532a09b95a34b043
io_uring: keep multishot request NAPI timeout current

This refresh statement was originally present in the original patch:
https://lore.kernel.org/netdev/20221121191437.996297-2-shr@devkernel.io/

It has been removed with no explanation in v6:
https://lore.kernel.org/netdev/20230201222254.744422-2-shr@devkernel.io/

It is important to make the refresh for multishot requests, because if no
new requests using the same NAPI device are added to the ring, the entry
will become stale and be removed silently. The unsuspecting user will
not know that their ring had busy polling for only 60 seconds before
being pruned.

Signed-off-by: Olivier Langlois <olivier@trillion01.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Fixes: 8d0c12a80cdeb ("io-uring: add napi busy poll support")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/0fe61a019ec61e5708cd117cb42ed0dab95e1617.1722294646.git.olivier@trillion01.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c