Goldwyn Rodrigues 2910ff17d1 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>
2015-10-12 01:33:58 -05:00
..
2014-01-14 23:23:03 -05:00
2015-08-13 12:32:04 -06:00
2013-08-23 09:02:13 -04:00
2012-07-30 17:25:16 -07:00
2015-08-13 12:31:57 -06:00
2015-09-11 18:15:18 -07:00
2015-08-13 12:31:57 -06:00
2015-08-13 12:31:57 -06:00