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, 29 Jan 2023 22:17:40 +0000 (15:17 -0700)
commit326a9e482e2134d7a44b7f8f9a721b38c6bbb146
tree10ff76aed7f6aaf0a8c25f14e72203b015b05641
parent490c00eb4fa5e5e25e0127240f6d6c1b499da95b
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