Skip to content

Commit ef8eaa4

Browse files
isilenceaxboe
authored andcommitted
io_uring: warn on not destroyed io-wq
Make sure that we killed an io-wq by the time a task is dead. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 1d5f360 commit ef8eaa4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/io_uring.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7843,6 +7843,8 @@ void __io_uring_free(struct task_struct *tsk)
78437843
struct io_uring_task *tctx = tsk->io_uring;
78447844

78457845
WARN_ON_ONCE(!xa_empty(&tctx->xa));
7846+
WARN_ON_ONCE(tctx->io_wq);
7847+
78467848
percpu_counter_destroy(&tctx->inflight);
78477849
kfree(tctx);
78487850
tsk->io_uring = NULL;

0 commit comments

Comments
 (0)