diff options
author | Christoph Hellwig <hch@lst.de> | 2020-05-16 20:28:00 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-19 17:34:29 +0200 |
commit | 35b371ff01410ec7c73312f1c1c320de35fcfd0f (patch) | |
tree | 59e18407f79f87e6a349bcf4f7b140439b4c8dab /block/blk-mq.c | |
parent | blk-mq: remove a pointless queue enter pair in blk_mq_alloc_request (diff) | |
download | linux-35b371ff01410ec7c73312f1c1c320de35fcfd0f.tar.xz linux-35b371ff01410ec7c73312f1c1c320de35fcfd0f.zip |
blk-mq: remove a pointless queue enter pair in blk_mq_alloc_request_hctx
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/blk-mq.c')
-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 4e62b97dceb4..b1c12de8926e 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -455,10 +455,7 @@ struct request *blk_mq_alloc_request_hctx(struct request_queue *q, alloc_data.ctx = __blk_mq_get_ctx(q, cpu); ret = -EWOULDBLOCK; - blk_queue_enter_live(q); rq = blk_mq_get_request(q, NULL, &alloc_data); - blk_queue_exit(q); - if (!rq) goto out_queue_exit; return rq; |