diff options
author | NeilBrown <neilb@suse.de> | 2008-02-06 04:39:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 13:41:18 -0500 |
commit | c620727779f7cc8ea96efb71f0651a26349e59c1 (patch) | |
tree | 777abdad9c9ef10cb4df5c0efc736e6c64851ed8 /include/linux/raid | |
parent | c303da6d713b87b7b3f999f5acce8ecc76ff1adb (diff) |
md: allow a maximum extent to be set for resyncing
This allows userspace to control resync/reshape progress and synchronise it
with other activities, such as shared access in a SAN, or backing up critical
sections during a tricky reshape.
Writing a number of sectors (which must be a multiple of the chunk size if
such is meaningful) causes a resync to pause when it gets to that point.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/raid')
-rw-r--r-- | include/linux/raid/md_k.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index b579cc628303..c77dca3221ed 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h | |||
@@ -219,6 +219,8 @@ struct mddev_s | |||
219 | atomic_t recovery_active; /* blocks scheduled, but not written */ | 219 | atomic_t recovery_active; /* blocks scheduled, but not written */ |
220 | wait_queue_head_t recovery_wait; | 220 | wait_queue_head_t recovery_wait; |
221 | sector_t recovery_cp; | 221 | sector_t recovery_cp; |
222 | sector_t resync_max; /* resync should pause | ||
223 | * when it gets here */ | ||
222 | 224 | ||
223 | spinlock_t write_lock; | 225 | spinlock_t write_lock; |
224 | wait_queue_head_t sb_wait; /* for waiting on superblock updates */ | 226 | wait_queue_head_t sb_wait; /* for waiting on superblock updates */ |