On 6/15/22 10:34, Hao Xu wrote:
On 6/14/22 22:37, Pavel Begunkov wrote:
@@ -228,7 +249,7 @@ int io_ringfd_register(struct io_ring_ctx *ctx, void __user *__arg,
return -EINVAL;
mutex_unlock(&ctx->uring_lock);
- ret = io_uring_add_tctx_node(ctx);
+ ret = __io_uring_add_tctx_node(ctx, false);
An question unrelated with this patch: why do we need this, since anyway
we will do it in later io_uring_enter() this task really submits reqs.
At least we need to allocate a tctx as the files are stored in there
mutex_lock(&ctx->uring_lock);
if (ret)
return ret;
--
Pavel Begunkov