blk-mq-debugfs: fix device sched directory for default scheduler
authorOmar Sandoval <osandov@fb.com>
Tue, 3 Oct 2017 21:57:16 +0000 (14:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 21:58:55 +0000 (15:58 -0600)
commit70e62f4bacdf31ea8a59f241c9229120cd06d9d1
tree5a819f2cab1d2bdb4706fdf31f32c011ee8ed7f2
parent6cd1a6fef7058de15405b13d6587538853279c7b
blk-mq-debugfs: fix device sched directory for default scheduler

In blk_mq_debugfs_register(), I remembered to set up the per-hctx sched
directories if a default scheduler was already configured by
blk_mq_sched_init() from blk_mq_init_allocated_queue(), but I didn't do
the same for the device-wide sched directory. Fix it.

Fixes: d332ce091813 ("blk-mq-debugfs: allow schedulers to register debugfs attributes")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c