-
由 Christoph Hellwig 提交于
md_setup_drive knows it works with md devices, so it is rather pointless to open a file descriptor and issue ioctls. Just call directly into the relevant low-level md routines after getting a handle to the device using blkdev_get_by_dev instead. Signed-off-by: NChristoph Hellwig <hch@lst.de> Reviewed-by: NNeilBrown <neilb@suse.de> Acked-by: NSong Liu <song@kernel.org> Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
7e0adbfc