diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-03-14 21:57:11 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-15 16:32:40 +0100 |
commit | f6d54255f4235448d4bbe442362d4caa62da97d5 (patch) | |
tree | df125b1bb46ac33b5a53cf4b23255371492897da /arch | |
parent | io_uring: replace sqd rw_semaphore with mutex (diff) | |
download | linux-f6d54255f4235448d4bbe442362d4caa62da97d5.tar.xz linux-f6d54255f4235448d4bbe442362d4caa62da97d5.zip |
io_uring: halt SQO submission on ctx exit
io_sq_thread_finish() is called in io_ring_ctx_free(), so SQPOLL task is
potentially running submitting new requests. It's not a disaster because
of using a "try" variant of percpu_ref_get, but is far from nice.
Remove ctx from the sqd ctx list earlier, before cancellation loop, so
SQPOLL can't find it and so won't submit new requests.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions