]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "block: release rq qos structures for queue without disk"
authorMing Lei <ming.lei@redhat.com>
Tue, 26 Apr 2022 02:49:36 +0000 (10:49 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 May 2022 16:06:40 +0000 (10:06 -0600)
This reverts commit f429ea7d96dacae5ebec9b2f341af14e8f29d4eb.

Commit f429ea7d96da ("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: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220426024936.3321341-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c

index 937bb6b863317a96908ae382c61e90fc1782b1b7..bc050677215235d072bfb3d2f01c2514f76662e6 100644 (file)
@@ -50,7 +50,6 @@
 #include "blk-pm.h"
 #include "blk-cgroup.h"
 #include "blk-throttle.h"
-#include "blk-rq-qos.h"
 
 struct dentry *blk_debugfs_root;
 
@@ -315,9 +314,6 @@ void blk_cleanup_queue(struct request_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_sync_queue(q);