diff options
author | NeilBrown | 2009-11-06 04:59:27 +0100 |
---|---|---|
committer | NeilBrown | 2009-11-06 04:59:27 +0100 |
commit | 24395a85d8efe6eee477ea35c73d045a8dd7a3a1 (patch) | |
tree | eeb32daee4f1d44eaae636cfd19cc2c8e8af686a /drivers/md/dm-exception-store.h | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 (diff) | |
download | kernel-qcow2-linux-24395a85d8efe6eee477ea35c73d045a8dd7a3a1.tar.gz kernel-qcow2-linux-24395a85d8efe6eee477ea35c73d045a8dd7a3a1.tar.xz kernel-qcow2-linux-24395a85d8efe6eee477ea35c73d045a8dd7a3a1.zip |
md: don't clear endpoint for resync when resync is interrupted.
If a 'sync_max' has been set (via sysfs), it is wrong to clear it
until a resync (or reshape or recovery ...) actually reached that
point.
So if a resync is interrupted (e.g. by device failure),
leave 'resync_max' unchanged.
This is particularly important for 'reshape' operations that do not
change the size of the array. For such operations mdadm needs to
monitor the reshape taking rolling backups of the section being
reshaped. If resync_max gets cleared, the reshape can get ahead of
mdadm and then the backups that mdadm creates are useless.
This is suitable for 2.6.31.y stable kernels.
Cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/dm-exception-store.h')
0 files changed, 0 insertions, 0 deletions