Skip to content

Commit 7cc167a

Browse files
committed
io_uring: use 'state' consistently
__io_submit_flush_completions() assigns ctx->submit_state to a local variable and uses it in all but one spot, switch that forgotten statement to using 'state' as well. Signed-off-by: Jens Axboe <[email protected]>
1 parent 31718d0 commit 7cc167a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io_uring/io_uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ void __io_submit_flush_completions(struct io_ring_ctx *ctx)
13901390
}
13911391
__io_cq_unlock_post(ctx);
13921392

1393-
if (!wq_list_empty(&ctx->submit_state.compl_reqs)) {
1393+
if (!wq_list_empty(&state->compl_reqs)) {
13941394
io_free_batch_list(ctx, state->compl_reqs.first);
13951395
INIT_WQ_LIST(&state->compl_reqs);
13961396
}

0 commit comments

Comments
 (0)