]> git.ipfire.org Git - thirdparty/mdadm.git/commit
IMSM: retry reading sync_completed during reshape
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Tue, 17 May 2016 11:24:41 +0000 (13:24 +0200)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 19 May 2016 14:44:21 +0000 (10:44 -0400)
commitdf2647fa5bbe84960dae11531e34bafef549b8ff
treec2a3aaba45b3227206ddb0349b77732037563f47
parent45a87c2f31335a759190dff663a881bc78ca5443
IMSM: retry reading sync_completed during reshape

The sync_completed after restarting a reshape
(for example - after reboot) is set to "delayed" until
mdmon changes the state. Mdadm does not wait for that change with
old kernels. If this condition occurs - it exits and reshape
is not continuing. This patch adds retry of reading sync_complete
with a delay. It gives time for mdmon to change the "delayed" state.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
super-intel.c