diff options
-rw-r--r-- | block/blk-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index c00e0bdeab4a..06636f3ad424 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -1278,6 +1278,11 @@ void __blk_put_request(struct request_queue *q, struct request *req) | |||
1278 | if (unlikely(!q)) | 1278 | if (unlikely(!q)) |
1279 | return; | 1279 | return; |
1280 | 1280 | ||
1281 | if (q->mq_ops) { | ||
1282 | blk_mq_free_request(req); | ||
1283 | return; | ||
1284 | } | ||
1285 | |||
1281 | blk_pm_put_request(req); | 1286 | blk_pm_put_request(req); |
1282 | 1287 | ||
1283 | elv_completed_request(q, req); | 1288 | elv_completed_request(q, req); |