]> 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)
commitdd0d905d0a07fccd8ec66611143ebb91399a8e3e
treec0e06f43aaf1c1fa908ebe2f196d24a0f42992f5
parent22d06e5db0b25a07f61ac298cd1ba641b9d75bc4
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