]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow - be careful about 'delayed' reshapes.
authorNeilBrown <neilb@suse.de>
Wed, 3 Oct 2012 04:41:31 +0000 (14:41 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 3 Oct 2012 04:41:31 +0000 (14:41 +1000)
commit1f9b0e2845e1ec22dc24dcef275a733c09ff2edd
tree825a0082f7b68de6a5a4813270dec3cb27a104c8
parentb716f38973ad4dad72a9626e7121a4b819ebb36b
Grow - be careful about 'delayed' reshapes.

If multiple reshapes are activated on the same devices (different
partitions) then one might be forced to wait for the other to
complete.
As reshaping suspends access to small sections of the array
at time, this cause a region to be suspended for a long time,
which isn't good.

To try to detect this and don't start suspending until
the reshape is actually happening.

This is only effective on 3.7 and later as prior kernels
don't report when the delayed reshape can progress.  For
the earlier kernels, just give a warning.

Signed-off-by; NeilBrown <neilb@suse.de>
Grow.c