]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite87b0429cb9e714843b367bb2f6e019979aff9a3
tree1de633a8620d8e9e2c55eaf7004c2df2f104d179
parentebfd4ba156bcc9034fdf0b6406f5c54e7ccf48a5
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