No need for two queue references. Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- block/blk-mq.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index d2962863e629f..d96d3931f33e6 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -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) { blk_queue_exit(q); return ERR_PTR(-EWOULDBLOCK); -- 2.26.2