summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlok Tiwari <alok.a.tiwari@oracle.com>2025-10-23 04:55:24 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-29 14:10:28 +0100
commitc4d145b336cf5e4c512f8710cef7eb9c7ed31be5 (patch)
treeaa9e05913f41cfb993ce7589bb487e5b98625066
parent50c6086e0dee500bf8f39f81d2df09eeb9b0a72b (diff)
downloadlinux-c4d145b336cf5e4c512f8710cef7eb9c7ed31be5.tar.gz
linux-c4d145b336cf5e4c512f8710cef7eb9c7ed31be5.tar.bz2
linux-c4d145b336cf5e4c512f8710cef7eb9c7ed31be5.zip
io_uring: correct __must_hold annotation in io_install_fixed_file
[ Upstream commit c5efc6a0b3940381d67887302ddb87a5cf623685 ] 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 <alok.a.tiwari@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--io_uring/filetable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/filetable.c b/io_uring/filetable.c
index a21660e3145a..794ef95df293 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;