blk-mq: cleanup disk sysfs registration
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Jun 2022 17:18:50 +0000 (19:18 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Jun 2022 17:32:42 +0000 (11:32 -0600)
commit8682b92e5ab852b93739a0f2b261fff4c733be57
tree1de633a8620d8e9e2c55eaf7004c2df2f104d179
parenteaa870f97544668025ba1f96ee267abac7b3c73c
blk-mq: cleanup disk sysfs registration

Pass a gendisk to the sysfs register/unregister functions and give
them descriptive names.  Also move the unregistration helper next
to the one doing the registration.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220628171850.1313069-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sysfs.c
block/blk-mq.h
block/blk-sysfs.c
include/linux/blk-mq.h