]> git.baikalelectronics.ru Git - kernel.git/commit
Fix remove_and_add_spares removes drive added as spare in slot_store
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Fri, 18 Dec 2015 04:19:16 +0000 (15:19 +1100)
committerNeilBrown <neilb@suse.com>
Fri, 18 Dec 2015 04:19:16 +0000 (15:19 +1100)
commitd004fe1f79acccf82afe3f066f6639ad988afd6a
tree964f7df60be4119d7b848eed64074403ac6bdd6f
parent4a63602a2ab7be6fec524518b9fa7d2479c7814d
Fix remove_and_add_spares removes drive added as spare in slot_store

Commit f2259d9b3f487802ab130971b4b7935f566f62cd
introduced a regression which would remove a recently added spare via
slot_store. Revert part of the patch which touches slot_store() and add
the disk directly using pers->hot_add_disk()

Fixes: f2259d9b3f48 ("md: remove_and_add_spares() to activate specific
rdev")
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md.c