diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index d10678b9d519cfaf3a6f7ad167a2ad52bf86c8f7..57382e523b3367be4b51cd2a4f16d9df43ae3dff 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -1390,7 +1390,7 @@ void __io_submit_flush_completions(struct io_ring_ctx *ctx) } __io_cq_unlock_post(ctx); - if (!wq_list_empty(&ctx->submit_state.compl_reqs)) { + if (!wq_list_empty(&state->compl_reqs)) { io_free_batch_list(ctx, state->compl_reqs.first); INIT_WQ_LIST(&state->compl_reqs); }