aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-iocost.c
diff options
context:
space:
mode:
authorSaravanan D <saravanand@fb.com>2021-04-07 10:59:58 -0700
committerJens Axboe <axboe@kernel.dk>2021-04-16 15:17:01 -0600
commit1e91e28e374d0b0b912154c192716374609360d9 (patch)
tree74d86b7e80d7a9702c5812df61f748230be887ee /block/blk-iocost.c
parentbfq/mq-deadline: remove redundant check for passthrough request (diff)
downloadlinux-dev-1e91e28e374d0b0b912154c192716374609360d9.tar.xz
linux-dev-1e91e28e374d0b0b912154c192716374609360d9.zip
blk-mq: Fix spurious debugfs directory creation during initialization
blk_mq_debugfs_register_sched_hctx() called from device_add_disk()->elevator_init_mq()->blk_mq_init_sched() initialization sequence does not have relevant parent directory setup and thus spuriously attempts "sched" directory creation from root mount of debugfs for every hw queue detected on the block device dmesg ... debugfs: Directory 'sched' with parent '/' already present! debugfs: Directory 'sched' with parent '/' already present! . . debugfs: Directory 'sched' with parent '/' already present! ... The parent debugfs directory for hw queues get properly setup device_add_disk()->blk_register_queue()->blk_mq_debugfs_register() ->blk_mq_debugfs_register_hctx() later in the block device initialization sequence. A simple check for debugfs_dir has been added to thwart premature debugfs directory/file creation attempts. Signed-off-by: Saravanan D <saravanand@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iocost.c')
0 files changed, 0 insertions, 0 deletions