Skip to content

Commit 5576035

Browse files
isilenceaxboe
authored andcommitted
io_uring/poll: lockdep annote io_poll_req_insert_locked
Add a lockdep annotation in io_poll_req_insert_locked(). Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/8115d8e702733754d0aea119e9b5bb63d1eb8b24.1668184658.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 30a3366 commit 5576035

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

io_uring/poll.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ static void io_poll_req_insert_locked(struct io_kiocb *req)
116116
struct io_hash_table *table = &req->ctx->cancel_table_locked;
117117
u32 index = hash_long(req->cqe.user_data, table->hash_bits);
118118

119+
lockdep_assert_held(&req->ctx->uring_lock);
120+
119121
hlist_add_head(&req->hash_node, &table->hbs[index].list);
120122
}
121123

0 commit comments

Comments
 (0)