]> git.neil.brown.name Git - mdadm.git/commit
Grow: another attempt to fix stop-during-reshape race.
authorNeilBrown <neilb@suse.de>
Mon, 25 May 2015 06:33:45 +0000 (16:33 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 25 May 2015 06:33:45 +0000 (16:33 +1000)
commite0cc1c8d8b29e28f0977fc16db54a38a44274765
treec7f57c75f21d61ed406dd5a5b4346a237cc58cab
parent4a984120ea3d4ebd1b84bdf020c5ba3c14320213
Grow: another attempt to fix stop-during-reshape race.

When the array is stopped during a critical section, we sometimes
erase the backup, which is bad.
This happens when 'completed' is zero.
This can happen easily when 'stop' freezes reshape.

So try to be more careful and check 'reshape_position'.

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