We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9e88a commit 583863eCopy full SHA for 583863e
fs/io_uring.c
@@ -924,6 +924,7 @@ static struct io_ring_ctx *io_ring_ctx_alloc(struct io_uring_params *p)
924
goto err;
925
926
ctx->flags = p->flags;
927
+ init_waitqueue_head(&ctx->sqo_wait);
928
init_waitqueue_head(&ctx->cq_wait);
929
INIT_LIST_HEAD(&ctx->cq_overflow_list);
930
init_completion(&ctx->completions[0]);
@@ -6837,7 +6838,6 @@ static int io_sq_offload_start(struct io_ring_ctx *ctx,
6837
6838
{
6839
int ret;
6840
- init_waitqueue_head(&ctx->sqo_wait);
6841
mmgrab(current->mm);
6842
ctx->sqo_mm = current->mm;
6843
0 commit comments