]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: correct __must_hold annotation in io_install_fixed_file
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Thu, 23 Oct 2025 11:55:24 +0000 (04:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:04:38 +0000 (14:04 +0100)
commit72f48587a683c4f19967f6bd0a19a9d22115a99b
treebff5f86d11d46320e3737d4312ae83c95a66446c
parent9aeb5b2dd0d26c175a869f0aa3e3222686fbad2c
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>
io_uring/filetable.c