]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq-debugfs: allow schedulers to register debugfs attributes
authorOmar Sandoval <osandov@fb.com>
Thu, 4 May 2017 14:24:40 +0000 (08:24 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 4 May 2017 14:24:40 +0000 (08:24 -0600)
commit4e5632d50411cd8ae2ff5ed0640741d25c11c17c
treec6f567b7ffea6dc4abf66cd49e2f94d7a9a49410
parentdd0d905d0a07fccd8ec66611143ebb91399a8e3e
blk-mq-debugfs: allow schedulers to register debugfs attributes

This provides the infrastructure for schedulers to expose their internal
state through debugfs. We add a list of queue attributes and a list of
hctx attributes to struct elevator_type and wire them up when switching
schedulers.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Add missing seq_file.h header in blk-mq-debugfs.h

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-debugfs.c
block/blk-mq-debugfs.h
block/blk-mq-sched.c
include/linux/blk-mq.h
include/linux/blkdev.h
include/linux/elevator.h