block: use default groups to register the queue attributes
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Jun 2022 17:18:47 +0000 (19:18 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Jun 2022 17:32:42 +0000 (11:32 -0600)
commit4a8d14bba486cca6880062f1ef240cf1d45f3367
treedf965b0c71300243cc58673dd3cdad2259fd7122
parent060f131e9c438837f9792e456fae424e621fb881
block: use default groups to register the queue attributes

Set up the default_groups for blk_queue_ktype instead of manually calling
sysfs_create_group.

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