diff options
author | Christoph Hellwig <hch@lst.de> | 2020-05-16 21:27:59 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-19 18:34:29 +0300 |
commit | 22fa792cd8c67958adbddc9d436b850e148a623b (patch) | |
tree | 78f211b61631c9cc307ced50ae48f11d5b855767 /block | |
parent | a5ea5811058ddb91da604afe77acd5ff29babe29 (diff) | |
download | linux-22fa792cd8c67958adbddc9d436b850e148a623b.tar.xz |
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.c | 3 |
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; |