[RFC V5 11/16] blk/rq-qos: get rid of debugfs register in blk_mq_debugfs_register
From: Wang Jianchao (Kuaishou)
Date: Thu Feb 24 2022 - 04:09:36 EST
There is not any enabled rqos policy when queue is initialized,
get rid of the coding for registering debugfs.
Signed-off-by: Wang Jianchao (Kuaishou) <jianchao.wan9@xxxxxxxxx>
---
block/blk-mq-debugfs.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c
index 7e3c3cc1b1a9..4c9dafd16a08 100644
--- a/block/blk-mq-debugfs.c
+++ b/block/blk-mq-debugfs.c
@@ -726,18 +726,6 @@ void blk_mq_debugfs_register(struct request_queue *q)
if (q->elevator && !hctx->sched_debugfs_dir)
blk_mq_debugfs_register_sched_hctx(q, hctx);
}
-
- if (q->rq_qos) {
- struct rq_qos *rqos = q->rq_qos;
- /*
- * Queue has not been registered right now, it is safe to
- * iterate the rqos w/o lock
- */
- while (rqos) {
- blk_mq_debugfs_register_rqos(rqos);
- rqos = rqos->next;
- }
- }
}
void blk_mq_debugfs_unregister(struct request_queue *q)
--
2.17.1