projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a3366
)
io_uring/poll: lockdep annote io_poll_req_insert_locked
author
Pavel Begunkov
<asml.silence@gmail.com>
Fri, 11 Nov 2022 16:51:30 +0000
(16:51 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 11 Nov 2022 16:59:27 +0000
(09:59 -0700)
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>
io_uring/poll.c
patch
|
blob
|
history
diff --git
a/io_uring/poll.c
b/io_uring/poll.c
index 97c214aa688c32ac7f764a8e2e5b90d95860cca8..f500506984ec6bf5778702b5c4f10026803484db 100644
(file)
--- a/
io_uring/poll.c
+++ b/
io_uring/poll.c
@@
-116,6
+116,8
@@
static void io_poll_req_insert_locked(struct io_kiocb *req)
struct io_hash_table *table = &req->ctx->cancel_table_locked;
u32 index = hash_long(req->cqe.user_data, table->hash_bits);
+ lockdep_assert_held(&req->ctx->uring_lock);
+
hlist_add_head(&req->hash_node, &table->hbs[index].list);
}