Files
i2som-imx-linux-4.1/drivers/md
NeilBrown bd4009424e Revert "md: allow a partially recovered device to be hot-added to an array."
commit d01552a76d71f9879af448e9142389ee9be6e95b upstream.

This reverts commit 7eb418851f.

This commit is poorly justified, I can find not discusison in email,
and it clearly causes a problem.

If a device which is being recovered fails and is subsequently
re-added to an array, there could easily have been changes to the
array *before* the point where the recovery was up to.  So the
recovery must start again from the beginning.

If a spare is being recovered and fails, then when it is re-added we
really should do a bitmap-based recovery up to the recovery-offset,
and then a full recovery from there.  Before this reversion, we only
did the "full recovery from there" which is not corect.  After this
reversion with will do a full recovery from the start, which is safer
but not ideal.

It will be left to a future patch to arrange the two different styles
of recovery.

Reported-and-tested-by: Nate Dailey <nate.dailey@stratus.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Fixes: 7eb418851f ("md: allow a partially recovered device to be hot-added to an array.")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-11-09 14:33:38 -08:00
..
2015-04-22 07:59:39 +10:00
2015-04-15 12:10:24 -04:00
2015-10-22 14:43:26 -07:00
2015-02-04 08:35:52 +11:00
2015-02-04 08:35:52 +11:00
2015-04-22 07:59:39 +10:00
2015-04-22 07:59:39 +10:00
2015-02-04 08:35:52 +11:00