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

io_uring: use cond_resched() in sqthread


If preempt isn't enabled in the kernel, we can run into hang issues with
sqthread submissions. Use cond_resched() to play nice instead of
cpu_relax(), if we end up starting the loop and not having any events
pending for submissions.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a1041c27
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