summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-05-16 20:27:59 +0200
committerJens Axboe <axboe@kernel.dk>2020-05-19 09:34:29 -0600
commit22fa792cd8c67958adbddc9d436b850e148a623b (patch)
tree78f211b61631c9cc307ced50ae48f11d5b855767 /block
parenta5ea5811058ddb91da604afe77acd5ff29babe29 (diff)
blk-mq: remove a pointless queue enter pair in blk_mq_alloc_request
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>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index b7e06673a30b..4e62b97dceb4 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)
goto out_queue_exit;
rq->__data_len = 0;