From: Alok Tiwari Date: Thu, 23 Oct 2025 11:55:24 +0000 (-0700) Subject: io_uring: correct __must_hold annotation in io_install_fixed_file X-Git-Tag: v6.18-rc3~21^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5efc6a0b3940381d67887302ddb87a5cf623685;p=thirdparty%2Fkernel%2Fstable.git io_uring: correct __must_hold annotation in io_install_fixed_file The __must_hold annotation references &req->ctx->uring_lock, but req is not in scope in io_install_fixed_file. This change updates the annotation to reference the correct ctx->uring_lock. improving code clarity. Fixes: f110ed8498af ("io_uring: split out fixed file installation and removal") Signed-off-by: Alok Tiwari Signed-off-by: Jens Axboe --- diff --git a/io_uring/filetable.c b/io_uring/filetable.c index a21660e3145ab..794ef95df293c 100644 --- a/io_uring/filetable.c +++ b/io_uring/filetable.c @@ -57,7 +57,7 @@ void io_free_file_tables(struct io_ring_ctx *ctx, struct io_file_table *table) static int io_install_fixed_file(struct io_ring_ctx *ctx, struct file *file, u32 slot_index) - __must_hold(&req->ctx->uring_lock) + __must_hold(&ctx->uring_lock) { struct io_rsrc_node *node;