]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: improve sq_thread waiting check
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 May 2021 21:58:01 +0000 (22:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Jun 2021 14:23:04 +0000 (08:23 -0600)
commit9c955fdbc89873e255c960720709bec0125a2cf5
tree5f464cdfbd80b98ce8b200c7d1d9d230fa4ef95b
parent098edf00450bf3c47dcc8c3da7ba793c727f2d74
io_uring: improve sq_thread waiting check

If SQPOLL task finds a ring requesting it to continue running, no need
to set wake flag to rest of the rings as it will be cleared in a moment
anyway, so hide it in a single sqd->ctx_list loop.

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