Skip to content
Commit 2910ff17 authored by Goldwyn Rodrigues's avatar Goldwyn Rodrigues
Browse files

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: default avatarGoldwyn Rodrigues <rgoldwyn@suse.com>
parent b8ca846e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment