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