]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit81f0c2ef41b02185928563899cd4d618ffc7eebf
tree255ec6f3b4c748e5f285a242c9b7038c08ad28ec
parent4a8d14bba486cca6880062f1ef240cf1d45f3367
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