提交 2e2ef4a1 编写于 作者: D Dylan Yudaken 提交者: Jens Axboe

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: NDylan Yudaken <dylany@meta.com>
Link: https://lore.kernel.org/r/20221124093559.3780686-8-dylany@meta.comSigned-off-by: NJens Axboe <axboe@kernel.dk>
上级 a77ab745
...@@ -775,6 +775,8 @@ static bool io_fill_cqe_aux(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 ...@@ -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; struct io_uring_cqe *cqe;
lockdep_assert_held(&ctx->completion_lock);
ctx->cq_extra++; ctx->cq_extra++;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册