]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: untangle debugfs and sysfs
authorOmar Sandoval <osandov@fb.com>
Thu, 4 May 2017 14:17:21 +0000 (08:17 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 4 May 2017 14:24:13 +0000 (08:24 -0600)
commit653937064f6d2e10b2bd3ff25ce1f91fc29e2a3e
treec0e06f43aaf1c1fa908ebe2f196d24a0f42992f5
parente6765ad98ee7042a5bba443aa3a732924d0b3e13
blk-mq: untangle debugfs and sysfs

Originally, I tied debugfs registration/unregistration together with
sysfs. There's no reason to do this, and it's getting in the way of
letting schedulers define their own debugfs attributes. Instead, tie the
debugfs registration to the lifetime of the structures themselves.

The saner lifetimes mean we can also get rid of the extra mq directory
and move everything one level up. I.e., nvme0n1/mq/hctx0/tags is now
just nvme0n1/hctx0/tags.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
block/blk-mq-debugfs.c
block/blk-mq-debugfs.h
block/blk-mq-sysfs.c
block/blk-mq.c
block/blk-sysfs.c
include/linux/blk-mq.h
include/linux/blkdev.h