Skip to content

Commit

Permalink
io_uring: add lockdep assertion in io_fill_cqe_aux
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dylan Yudaken authored and axboe committed Nov 25, 2022
1 parent a77ab74 commit 2e2ef4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions io_uring/io_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;

/*
Expand Down

0 comments on commit 2e2ef4a

Please sign in to comment.