diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-04-25 23:34:45 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-26 06:59:25 -0600 |
commit | 28090c133869b461c5366195a856d73469ab87d9 (patch) | |
tree | 5da5a4787a2f03207d74cf1f72d9ed4eb903b774 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 615cee49b3ca55f54d527f7a6a7d0fd4fd6fef6b (diff) |
io_uring: fix work_exit sqpoll cancellations
After closing an SQPOLL ring, io_ring_exit_work() kicks in and starts
doing cancellations via io_uring_try_cancel_requests(). It will go
through io_uring_try_cancel_iowq(), which uses ctx->tctx_list, but as
SQPOLL task don't have a ctx note, its io-wq won't be reachable and so
is left not cancelled.
It will eventually cancelled when one of the tasks dies, but if a thread
group survives for long and changes rings, it will spawn lots of
unreclaimed resources and live locked works.
Cancel SQPOLL task's io-wq separately in io_ring_exit_work().
Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a71a7fe345135d684025bb529d5cb1d8d6b46e10.1619389911.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions