Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

blk-mq-debugfs: remove blk_mq_debugfs_unregister_rqos()

Because this helper is only used by iocost and iolatency, while they
don't have debugfs entries.

Signed-off-by: Yu Kuai <yukuai@fnnas.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Yu Kuai and committed by
Jens Axboe
5ae4b12e 70bafa5e

-18
-10
block/blk-mq-debugfs.c
··· 734 734 return "unknown"; 735 735 } 736 736 737 - void blk_mq_debugfs_unregister_rqos(struct rq_qos *rqos) 738 - { 739 - lockdep_assert_held(&rqos->disk->queue->debugfs_mutex); 740 - 741 - if (!rqos->disk->queue->debugfs_dir) 742 - return; 743 - debugfs_remove_recursive(rqos->debugfs_dir); 744 - rqos->debugfs_dir = NULL; 745 - } 746 - 747 737 static void blk_mq_debugfs_register_rqos(struct rq_qos *rqos) 748 738 { 749 739 struct request_queue *q = rqos->disk->queue;
-4
block/blk-mq-debugfs.h
··· 34 34 void blk_mq_debugfs_unregister_sched_hctx(struct blk_mq_hw_ctx *hctx); 35 35 36 36 void blk_mq_debugfs_register_rq_qos(struct request_queue *q); 37 - void blk_mq_debugfs_unregister_rqos(struct rq_qos *rqos); 38 37 #else 39 38 static inline void blk_mq_debugfs_register(struct request_queue *q) 40 39 { ··· 77 78 { 78 79 } 79 80 80 - static inline void blk_mq_debugfs_unregister_rqos(struct rq_qos *rqos) 81 - { 82 - } 83 81 #endif 84 82 85 83 #if defined(CONFIG_BLK_DEV_ZONED) && defined(CONFIG_BLK_DEBUG_FS)
-4
block/blk-rq-qos.c
··· 371 371 if (!q->rq_qos) 372 372 blk_queue_flag_clear(QUEUE_FLAG_QOS_ENABLED, q); 373 373 blk_mq_unfreeze_queue(q, memflags); 374 - 375 - mutex_lock(&q->debugfs_mutex); 376 - blk_mq_debugfs_unregister_rqos(rqos); 377 - mutex_unlock(&q->debugfs_mutex); 378 374 }