lkml.org 
[lkml]   [2022]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC V5 11/16] blk/rq-qos: get rid of debugfs register in blk_mq_debugfs_register
Date
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@gmail.com>
---
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
\
 
 \ /
  Last update: 2022-02-24 10:11    [W:0.120 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site