From 8b98a97f80ed0345d254fb645e7c78c40ebed8a6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 20 Oct 2018 15:43:37 -0600 Subject: [PATCH] blk-merge: kill dead queue lock held check This is dead code, any queue reaching this part has mq_ops attached. Reviewed-by: Hannes Reinecke Tested-by: Ming Lei Reviewed-by: Omar Sandoval Signed-off-by: Jens Axboe --- block/blk-merge.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/block/blk-merge.c b/block/blk-merge.c index 28c92b3098c0..a399b2fa8bc8 100644 --- a/block/blk-merge.c +++ b/block/blk-merge.c @@ -729,9 +729,6 @@ enum elv_merge blk_try_req_merge(struct request *req, struct request *next) static struct request *attempt_merge(struct request_queue *q, struct request *req, struct request *next) { - if (!q->mq_ops) - lockdep_assert_held(q->queue_lock); - if (!rq_mergeable(req) || !rq_mergeable(next)) return NULL; -- 2.30.2