]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
io_uring/kbuf: use 'ctx' consistently
authorJens Axboe <axboe@kernel.dk>
Tue, 17 Mar 2026 20:03:54 +0000 (14:03 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 17 Mar 2026 20:03:54 +0000 (14:03 -0600)
There's already a local ctx variable, yet the ring lock and unlock
helpers use req->ctx. use ctx consistently.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c

index 26813b0f1dfd14e3cea95b0655464bc507c4f228..ff81f32d8032fec3618231c38b2c7d98571dfab6 100644 (file)
@@ -225,7 +225,7 @@ struct io_br_sel io_buffer_select(struct io_kiocb *req, size_t *len,
        struct io_br_sel sel = { };
        struct io_buffer_list *bl;
 
-       io_ring_submit_lock(req->ctx, issue_flags);
+       io_ring_submit_lock(ctx, issue_flags);
 
        bl = io_buffer_get_list(ctx, buf_group);
        if (likely(bl)) {
@@ -234,7 +234,7 @@ struct io_br_sel io_buffer_select(struct io_kiocb *req, size_t *len,
                else
                        sel.addr = io_provided_buffer_select(req, len, bl);
        }
-       io_ring_submit_unlock(req->ctx, issue_flags);
+       io_ring_submit_unlock(ctx, issue_flags);
        return sel;
 }