We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fab4fb5 + c92f079 commit b388df3Copy full SHA for b388df3
1 file changed
io_uring/tctx.c
@@ -171,8 +171,10 @@ int __io_uring_add_tctx_node(struct io_ring_ctx *ctx)
171
}
172
if (!current->io_uring) {
173
err_free:
174
- if (tctx->io_wq)
+ if (tctx->io_wq) {
175
+ io_wq_exit_start(tctx->io_wq);
176
io_wq_put_and_exit(tctx->io_wq);
177
+ }
178
percpu_counter_destroy(&tctx->inflight);
179
kfree(tctx);
180
0 commit comments