blk-merge: kill dead queue lock held check
authorJens Axboe <axboe@kernel.dk>
Sat, 20 Oct 2018 21:43:37 +0000 (15:43 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:42:33 +0000 (13:42 -0700)
This is dead code, any queue reaching this part has mq_ops
attached.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c

index 28c92b3098c0b30ec3366a786c079d35cf70f444..a399b2fa8bc8f0c89ce82af0a6daa0d1360656ef 100644 (file)
@@ -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;