NeilBrown 5024c29831 md: Remove recent change which allows devices to skip recovery.
commit 7ceb17e87bde79d285a8b988cfed9eaeebe60b86
    md: Allow devices to be re-added to a read-only array.

allowed a bit more than just that.  It also allows devices to be added
to a read-write array and to end up skipping recovery.

This patch removes the offending piece of code pending a rewrite for a
subsequent release.

More specifically:
 If the array has a bitmap, then the device will still need a bitmap
 based resync ('saved_raid_disk' is set under different conditions
 is a bitmap is present).
 If the array doesn't have a bitmap, then this is correct as long as
 nothing has been written to the array since the metadata was checked
 by ->validate_super.  However there is no locking to ensure that there
 was no write.

Bug was introduced in 3.10 and causes data corruption so
patch is suitable for 3.10-stable.

Cc: stable@vger.kernel.org (3.10)
Reported-by: Joe Lawrence <joe.lawrence@stratus.com>
Signed-off-by: NeilBrown <neilb@suse.de>
2013-07-18 14:18:03 +10:00
..
2013-06-27 13:42:16 -04:00
2013-07-02 14:23:01 -07:00
2013-07-10 14:46:40 -07:00
2013-07-10 11:16:00 -07:00
2013-07-02 11:44:19 -07:00
2013-07-13 17:41:21 -07:00
2013-06-28 13:01:40 +02:00
2013-07-10 14:50:08 -07:00
2013-07-14 15:18:27 -07:00
2013-07-10 14:50:58 -07:00