diff options
author | Jonathan Brassow <jbrassow@f14.redhat.com> | 2011-06-08 01:10:08 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-06-08 01:10:08 -0400 |
commit | 68866e425be2ef2664aa5c691bb3ab789736acf5 (patch) | |
tree | 03cc5c452dcf70228a467031ae3f1989755cd1c1 /drivers | |
parent | 629acb6abac0ef217ee579e14084af2ce7381dbc (diff) |
MD: no sync IO while suspended
Disallow resync I/O while the RAID array is suspended.
Recovery, resync, and metadata I/O should not be allowed while a device is
suspended.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/md.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 4ea02c634d33..4fa915a21d0d 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -7045,7 +7045,6 @@ void md_do_sync(mddev_t *mddev) | |||
7045 | } | 7045 | } |
7046 | EXPORT_SYMBOL_GPL(md_do_sync); | 7046 | EXPORT_SYMBOL_GPL(md_do_sync); |
7047 | 7047 | ||
7048 | |||
7049 | static int remove_and_add_spares(mddev_t *mddev) | 7048 | static int remove_and_add_spares(mddev_t *mddev) |
7050 | { | 7049 | { |
7051 | mdk_rdev_t *rdev; | 7050 | mdk_rdev_t *rdev; |
@@ -7157,6 +7156,9 @@ static void reap_sync_thread(mddev_t *mddev) | |||
7157 | */ | 7156 | */ |
7158 | void md_check_recovery(mddev_t *mddev) | 7157 | void md_check_recovery(mddev_t *mddev) |
7159 | { | 7158 | { |
7159 | if (mddev->suspended) | ||
7160 | return; | ||
7161 | |||
7160 | if (mddev->bitmap) | 7162 | if (mddev->bitmap) |
7161 | bitmap_daemon_work(mddev); | 7163 | bitmap_daemon_work(mddev); |
7162 | 7164 | ||