]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: simplify waking sqo_sq_wait
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 May 2021 21:58:03 +0000 (22:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 May 2021 17:40:33 +0000 (11:40 -0600)
commit6d78264383f49309fb90421d494499713f08a024
tree278ab84d7bac6ebd4424b3eeeacef24836268c6a
parentff95e587408062097a811f73bc2842252d0d0683
io_uring: simplify waking sqo_sq_wait

Going through submission in __io_sq_thread() and still having a full SQ
is rather unexpected, so remove a check for SQ fullness and just wake up
whoever wait on sqo_sq_wait. Also skip if it doesn't do submission in
the first place, likely may to happen for SQPOLL sharing and/or IOPOLL.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e2e91751e87b1a39f8d63ef884aaff578123f61e.1621201931.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c