Message ID | 20220819152738.1111255-17-hao.xu@linux.dev (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | uringlet | expand |
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index a109dcb48702..bbe8948f4771 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -2699,6 +2699,11 @@ static __cold void io_ring_ctx_wait_and_kill(struct io_ring_ctx *ctx) unsigned long index; struct creds *creds; + if (ctx->flags & IORING_SETUP_URINGLET) { + io_wq_exit_start(ctx->let); + io_wq_put_and_exit(ctx->let); + } + mutex_lock(&ctx->uring_lock); percpu_ref_kill(&ctx->refs); if (ctx->rings)