|
@@ -1317,6 +1317,8 @@ static inline void __blk_mq_insert_req_list(struct blk_mq_hw_ctx *hctx,
|
|
{
|
|
{
|
|
struct blk_mq_ctx *ctx = rq->mq_ctx;
|
|
struct blk_mq_ctx *ctx = rq->mq_ctx;
|
|
|
|
|
|
|
|
+ lockdep_assert_held(&ctx->lock);
|
|
|
|
+
|
|
trace_block_rq_insert(hctx->queue, rq);
|
|
trace_block_rq_insert(hctx->queue, rq);
|
|
|
|
|
|
if (at_head)
|
|
if (at_head)
|
|
@@ -1330,6 +1332,8 @@ void __blk_mq_insert_request(struct blk_mq_hw_ctx *hctx, struct request *rq,
|
|
{
|
|
{
|
|
struct blk_mq_ctx *ctx = rq->mq_ctx;
|
|
struct blk_mq_ctx *ctx = rq->mq_ctx;
|
|
|
|
|
|
|
|
+ lockdep_assert_held(&ctx->lock);
|
|
|
|
+
|
|
__blk_mq_insert_req_list(hctx, rq, at_head);
|
|
__blk_mq_insert_req_list(hctx, rq, at_head);
|
|
blk_mq_hctx_mark_pending(hctx, ctx);
|
|
blk_mq_hctx_mark_pending(hctx, ctx);
|
|
}
|
|
}
|