mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
22fa792cd8
commit
35b371ff01
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user