]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove the extra gendisk reference in __blk_mq_register_dev
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Jun 2022 17:18:48 +0000 (19:18 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Jun 2022 17:32:42 +0000 (11:32 -0600)
commite5244fc49d3639a1574e42ff497fadcae7e2d784
tree255ec6f3b4c748e5f285a242c9b7038c08ad28ec
parente34556ea40604ac7138e613513cf1c89f568e34d
block: remove the extra gendisk reference in __blk_mq_register_dev

kobject_add already grabs a reference to the parent, no need to have
another one.

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