]> www.infradead.org Git - users/hch/block.git/commitdiff
io_uring: use 'state' consistently
authorJens Axboe <axboe@kernel.dk>
Fri, 14 Jun 2024 16:57:03 +0000 (10:57 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 16 Jun 2024 20:54:55 +0000 (14:54 -0600)
__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 <axboe@kernel.dk>
io_uring/io_uring.c

index d10678b9d519cfaf3a6f7ad167a2ad52bf86c8f7..57382e523b3367be4b51cd2a4f16d9df43ae3dff 100644 (file)
@@ -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);
        }