Skip to content
Snippets Groups Projects
Commit 6ff1407e authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: ensure local task_work is run on wait timeout


A previous commit added an earlier break condition here, which is fine if
we're using non-local task_work as it'll be run on return to userspace.
However, if DEFER_TASKRUN is used, then we could be leaving local
task_work that is ready to process in the ctx list until next time that
we enter the kernel to wait for events.

Move the break condition to _after_ we have run task_work.

Cc: stable@vger.kernel.org
Fixes: 846072f1 ("io_uring: mimimise io_cqring_wait_schedule")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d293b1a8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment