summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-07 17:31:19 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-16 17:59:24 +0200
commit7e0adbfc20c50b021e425662834a492f958efee7 (patch)
treec6a176e2026960733c16fe189f9cb7d9653c0671 /init
parentd1100488c3ce11b853785cf15ee4c19bfab4c842 (diff)
downloadlwn-7e0adbfc20c50b021e425662834a492f958efee7.tar.gz
lwn-7e0adbfc20c50b021e425662834a492f958efee7.zip
md: rewrite md_setup_drive to avoid ioctls
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: Christoph Hellwig <hch@lst.de> Reviewed-by: NeilBrown <neilb@suse.de> Acked-by: Song Liu <song@kernel.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions