]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite34556ea40604ac7138e613513cf1c89f568e34d
treedf965b0c71300243cc58673dd3cdad2259fd7122
parentd47feb01bbbd8b37afa537edf9a257002b2d3688
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