Skip to content

Commit 8b98a97

Browse files
committed
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 <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>
1 parent 2081a56 commit 8b98a97

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

block/blk-merge.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,9 +729,6 @@ enum elv_merge blk_try_req_merge(struct request *req, struct request *next)
729729
static struct request *attempt_merge(struct request_queue *q,
730730
struct request *req, struct request *next)
731731
{
732-
if (!q->mq_ops)
733-
lockdep_assert_held(q->queue_lock);
734-
735732
if (!rq_mergeable(req) || !rq_mergeable(next))
736733
return NULL;
737734

0 commit comments

Comments
 (0)