]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
md: remove_and_add_spares() to activate specific rdev
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 28 Sep 2015 15:27:26 +0000 (10:27 -0500)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 12 Oct 2015 06:33:58 +0000 (01:33 -0500)
commit2910ff17d154baa5eb50e362a91104e831eb2bb6
tree746036180b2192079ee7451764437e144f7a3b04
parentb8ca846e45197a2de829def27254f833a998723e
md: remove_and_add_spares() to activate specific rdev

remove_and_add_spares() checks for all devices to activate spare.
Change it to activate a specific device if a non-null rdev
argument is passed.

remove_and_add_spares() can be used to activate spares in
slot_store() as well.

For hot_remove_disk(), check if rdev->raid_disk == -1 before
calling remove_and_add_spares()

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
drivers/md/md.c