• Jens Axboe's avatar
    io_uring: split work handling part of SQPOLL into helper · c8d1ba58
    Jens Axboe authored
    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>
    c8d1ba58
io_uring.c 224 KB