]> git.baikalelectronics.ru Git - kernel.git/commit
MD: Allow restarting an interrupted incremental recovery.
authorAndrei Warkentin <andreiw@vmware.com>
Tue, 18 Oct 2011 01:16:48 +0000 (12:16 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 18 Oct 2011 01:16:48 +0000 (12:16 +1100)
commit789c30f2f706e8ae5e78cc7c41e18ebb6a16aa66
treea0fb7f9b6993b44e37dc2f724df251bd6fcffae3
parent093d9c586e6a892ee1f8c383248f9a3e2a2a54a3
MD: Allow restarting an interrupted incremental recovery.

If an incremental recovery was interrupted, a subsequent
re-add will result in a full recovery, even though an
incremental should be possible (seen with raid1).

Solve this problem by not updating the superblock on the
recovering device until array is not degraded any longer.

Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrei Warkentin <andreiw@vmware.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c