Message ID | 20200513110419.2362556-3-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/4] block: move the call to blk_queue_enter_live out of blk_mq_get_request | expand |
diff --git a/block/blk-mq.c b/block/blk-mq.c index 9865a36e6a6e3..a3491c1397501 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -404,10 +404,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) { blk_queue_exit(q); return ERR_PTR(-EWOULDBLOCK);
No need for two queue references. Signed-off-by: Christoph Hellwig <hch@lst.de> --- block/blk-mq.c | 3 --- 1 file changed, 3 deletions(-)