summaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-04-13 03:58:41 +0200
committerJens Axboe <axboe@kernel.dk>2021-04-13 17:37:54 +0200
commit8c855885b8b35af24f45cdd288a9b6ba6274a8ac (patch)
treeb4166401471c8cc7aa285cd84a0d562f7b4bc850 /fs/io_uring.c
parentio_uring: split poll and poll update structures (diff)
downloadlinux-8c855885b8b35af24f45cdd288a9b6ba6274a8ac.tar.xz
linux-8c855885b8b35af24f45cdd288a9b6ba6274a8ac.zip
io_uring: add timeout completion_lock annotation
Add one more sparse locking annotation for readability in io_kill_timeout(). Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/bdbb22026024eac29203c1aa0045c4954a2488d1.1618278933.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r--fs/io_uring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 7afb2f57b6ac..640e26bf3f4f 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -1267,6 +1267,7 @@ static void io_queue_async_work(struct io_kiocb *req)
}
static void io_kill_timeout(struct io_kiocb *req, int status)
+ __must_hold(&req->ctx->completion_lock)
{
struct io_timeout_data *io = req->async_data;
int ret;