X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=block%2Fblk-mq-debugfs.c;h=de294d775acfa413854c109eeaa08b9b6bdfd354;hb=8ff0b97cf2c56247e246167b4ab602469354e917;hp=980e7309564332ee1c23e0d96b13996f27c0aeca;hpb=cc4238bd1639332a1126e2cf677b5656e28bdc02;p=linux-2.6-block.git diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 980e73095643..de294d775acf 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -815,10 +815,14 @@ int blk_mq_debugfs_register(struct request_queue *q) goto err; /* - * blk_mq_init_hctx() attempted to do this already, but q->debugfs_dir + * blk_mq_init_sched() attempted to do this already, but q->debugfs_dir * didn't exist yet (because we don't know what to name the directory * until the queue is registered to a gendisk). */ + if (q->elevator && !q->sched_debugfs_dir) + blk_mq_debugfs_register_sched(q); + + /* Similarly, blk_mq_init_hctx() couldn't do this previously. */ queue_for_each_hw_ctx(q, hctx, i) { if (!hctx->debugfs_dir && blk_mq_debugfs_register_hctx(q, hctx)) goto err;