Commit 285d5731 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe

Revert "block: release rq qos structures for queue without disk"

This reverts commit daaca352.

Commit daaca352 ("block: release rq qos structures for queue without
disk") is only needed for v5.15~v5.17, and isn't needed for v5.18, so
revert it.
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220426024936.3321341-1-ming.lei@redhat.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 09df6a75
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
#include "blk-pm.h" #include "blk-pm.h"
#include "blk-cgroup.h" #include "blk-cgroup.h"
#include "blk-throttle.h" #include "blk-throttle.h"
#include "blk-rq-qos.h"
struct dentry *blk_debugfs_root; struct dentry *blk_debugfs_root;
...@@ -315,9 +314,6 @@ void blk_cleanup_queue(struct request_queue *q) ...@@ -315,9 +314,6 @@ void blk_cleanup_queue(struct request_queue *q)
*/ */
blk_freeze_queue(q); blk_freeze_queue(q);
/* cleanup rq qos structures for queue without disk */
rq_qos_exit(q);
blk_queue_flag_set(QUEUE_FLAG_DEAD, q); blk_queue_flag_set(QUEUE_FLAG_DEAD, q);
blk_sync_queue(q); blk_sync_queue(q);
......
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