Commit 35b371ff authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

blk-mq: remove a pointless queue enter pair in blk_mq_alloc_request_hctx

No need for two queue references.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 22fa792c
...@@ -455,10 +455,7 @@ struct request *blk_mq_alloc_request_hctx(struct request_queue *q, ...@@ -455,10 +455,7 @@ struct request *blk_mq_alloc_request_hctx(struct request_queue *q,
alloc_data.ctx = __blk_mq_get_ctx(q, cpu); alloc_data.ctx = __blk_mq_get_ctx(q, cpu);
ret = -EWOULDBLOCK; ret = -EWOULDBLOCK;
blk_queue_enter_live(q);
rq = blk_mq_get_request(q, NULL, &alloc_data); rq = blk_mq_get_request(q, NULL, &alloc_data);
blk_queue_exit(q);
if (!rq) if (!rq)
goto out_queue_exit; goto out_queue_exit;
return rq; return rq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment