]> git.baikalelectronics.ru Git - 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)
commit3dedf195ea0e696f5f0bcd6f6684035095dd6aa2
tree746036180b2192079ee7451764437e144f7a3b04
parent6774b5bdf1a2b200a4432afc86a07bb70af669cc
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