]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Oct 2025 13:25:07 +0000 (07:25 -0600)
commitc5efc6a0b3940381d67887302ddb87a5cf623685
treef34152389e33752479ab40f0971246a6b75644b3
parent060aa0b0c26c9e88cfc1433fab3d0145700e8247
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 <alok.a.tiwari@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/filetable.c