]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: wake SQPOLL task when task_work is added to an empty queue
authorJens Axboe <axboe@kernel.dk>
Wed, 14 Feb 2024 20:56:08 +0000 (13:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Feb 2024 20:56:08 +0000 (13:56 -0700)
commit78f9b61bd8e5466f0e90823e64e3d87c41f6258c
treebd83f9d5155de70d4a97cf2ba64df7d414384907
parent428f13826855e3eea44bf13cedbf33f382ef8794
io_uring: wake SQPOLL task when task_work is added to an empty queue

If there's no current work on the list, we still need to potentially
wake the SQPOLL task if it is sleeping. This is ordered with the
wait queue addition in sqpoll, which adds to the wait queue before
checking for pending work items.

Fixes: af5d68f8892f ("io_uring/sqpoll: manage task_work privately")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c