Files
linux/io_uring/filetable.c
Alok Tiwari c4d145b336 io_uring: correct __must_hold annotation in io_install_fixed_file
[ Upstream commit c5efc6a0b3 ]

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: f110ed8498 ("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>
2025-10-29 14:10:28 +01:00

3.6 KiB