]> git.baikalelectronics.ru Git - kernel.git/commit
md: return the allocated devices from md_alloc
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Jul 2022 06:24:29 +0000 (08:24 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:46 +0000 (17:22 -0600)
commit29acb4f330644daf3dad7228fe6bc6ecf452746c
tree6cfb8e1ed50e69186e2a36ad37486ee071222422
parentb1f006a82fab617f35b7b6a9ebc97f7becf23a78
md: return the allocated devices from md_alloc

Two callers of md_alloc want to use the newly allocated devices, so
return it instead of letting them find it cumbersomely after the
allocation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-and-tested-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md-autodetect.c
drivers/md/md.c
drivers/md/md.h