Skip to content
Commit c8d1ba58 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: split work handling part of SQPOLL into helper



This is done in preparation for handling more than one ctx, but it also
cleans up the code a bit since io_sq_thread() was a bit too unwieldy to
get a get overview on.

__io_sq_thread() is now the main handler, and it returns an enum sq_ret
that tells io_sq_thread() what it ended up doing. The parent then makes
a decision on idle, spinning, or work handling based on that.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3f0e64d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment