Skip to content

Commit b388df3

Browse files
committed
Merge branch 'io_uring-7.1' into for-next
* io_uring-7.1: io_uring/tctx: mark io_wq as exiting before error path teardown
2 parents fab4fb5 + c92f079 commit b388df3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

io_uring/tctx.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,10 @@ int __io_uring_add_tctx_node(struct io_ring_ctx *ctx)
171171
}
172172
if (!current->io_uring) {
173173
err_free:
174-
if (tctx->io_wq)
174+
if (tctx->io_wq) {
175+
io_wq_exit_start(tctx->io_wq);
175176
io_wq_put_and_exit(tctx->io_wq);
177+
}
176178
percpu_counter_destroy(&tctx->inflight);
177179
kfree(tctx);
178180
}

0 commit comments

Comments
 (0)