Commit 6f5ba581 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

blk-mq: divert __blk_put_request for MQ ops

__blk_put_request needs to call into the blk-mq code just like
blk_put_request.  As we don't have the queue lock in this case both
end up calling the same function.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 72a0a36e
...@@ -1278,6 +1278,11 @@ void __blk_put_request(struct request_queue *q, struct request *req) ...@@ -1278,6 +1278,11 @@ void __blk_put_request(struct request_queue *q, struct request *req)
if (unlikely(!q)) if (unlikely(!q))
return; return;
if (q->mq_ops) {
blk_mq_free_request(req);
return;
}
blk_pm_put_request(req); blk_pm_put_request(req);
elv_completed_request(q, req); elv_completed_request(q, req);
......
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