]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/blk-mq.c
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)
commit9c1051aacde828073dbbab5e8e59c0fc802efa9a
treec0e06f43aaf1c1fa908ebe2f196d24a0f42992f5
parentd173a25165c124442182f6b21d0c2ec381a0eebe
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