diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2004-08-23 21:28:31 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-23 21:28:31 -0700 |
| commit | 32c31806b1d70b73aa7cab95308199f3d710ff3d (patch) | |
| tree | e0870b3e6211f36f3f4c5dc8facbca11ed1a25bb /include/linux/raid/md.h | |
| parent | b60e5e711ad490216cc39f0cdfac91a789d85694 (diff) | |
[PATCH] md: assorted fixes/improvemnet to generic md resync code.
1/ Introduce "mddev->resync_max_sectors" so that an md personality
can ask for resync to cover a different address range than that of a
single drive. raid10 will use this.
2/ fix is_mddev_idle so that if there seem to be a negative number
of events, it doesn't immediately assume activity.
3/ make "sync_io" (the count of IO sectors used for array resync)
an atomic_t to avoid SMP races.
4/ Pass md_sync_acct a "block_device" rather than the containing "rdev",
as the whole rdev isn't needed. Also make this an inline function.
5/ Make sure recovery gets interrupted on any error.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid/md.h')
| -rw-r--r-- | include/linux/raid/md.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h index 9c06e776cfc2..d9e292ebe417 100644 --- a/include/linux/raid/md.h +++ b/include/linux/raid/md.h @@ -74,7 +74,6 @@ extern void md_write_start(mddev_t *mddev); extern void md_write_end(mddev_t *mddev); extern void md_handle_safemode(mddev_t *mddev); extern void md_done_sync(mddev_t *mddev, int blocks, int ok); -extern void md_sync_acct(mdk_rdev_t *rdev, unsigned long nr_sectors); extern void md_error (mddev_t *mddev, mdk_rdev_t *rdev); extern void md_unplug_mddev(mddev_t *mddev); |
