io_uring: set TASK_RUNNING right after schedule
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Jan 2023 11:22:27 +0000 (11:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 8 Jan 2023 18:18:44 +0000 (11:18 -0700)
commitb07358e24f8bdd06a426f2ccaf7dfcf9216ba357
treec9bc2200e680f908baaf23e59e48723c47248c20
parentb9b19725832c2fdd98fdf7e5d103491a13cc5989
io_uring: set TASK_RUNNING right after schedule

Instead of constantly watching that the state of the task is running
before executing tw or taking locks in io_cqring_wait(), switch it back
to TASK_RUNNING immediately.

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