diff options
author | Dylan Yudaken <dylany@meta.com> | 2022-11-24 10:35:57 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-25 14:10:04 +0100 |
commit | 2e2ef4a1dab980d88a1ab45bf0e28c8851999e33 (patch) | |
tree | cfe11095a888b7aec38ced104822e851c41f5bc6 /io_uring/io_uring.c | |
parent | io_uring: make io_fill_cqe_aux static (diff) | |
download | linux-2e2ef4a1dab980d88a1ab45bf0e28c8851999e33.tar.xz linux-2e2ef4a1dab980d88a1ab45bf0e28c8851999e33.zip |
io_uring: add lockdep assertion in io_fill_cqe_aux
Add an assertion for the completion lock to io_fill_cqe_aux
Signed-off-by: Dylan Yudaken <dylany@meta.com>
Link: https://lore.kernel.org/r/20221124093559.3780686-8-dylany@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index fea84e51e56f..03051e1fa02e 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -775,6 +775,8 @@ static bool io_fill_cqe_aux(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 { struct io_uring_cqe *cqe; + lockdep_assert_held(&ctx->completion_lock); + ctx->cq_extra++; /* |