blk-mq: remove a pointless queue enter pair in blk_mq_alloc_request
authorChristoph Hellwig <hch@lst.de>
Sat, 16 May 2020 18:27:59 +0000 (20:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 May 2020 15:34:29 +0000 (09:34 -0600)
No need for two queue references.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c

index b7e06673a30ba8d4678bc74e752a8d626389519f..4e62b97dceb48ed6ba5dd9790920a9edb71b5aa6 100644 (file)
@@ -406,10 +406,7 @@ struct request *blk_mq_alloc_request(struct request_queue *q, unsigned int op,
        if (ret)
                return ERR_PTR(ret);
 
-       blk_queue_enter_live(q);
        rq = blk_mq_get_request(q, NULL, &alloc_data);
-       blk_queue_exit(q);
-
        if (!rq)
                goto out_queue_exit;
        rq->__data_len = 0;