diff options
author | Jonathan Brassow <jbrassow@f14.redhat.com> | 2011-06-08 15:10:08 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-06-08 15:10:08 +1000 |
commit | 68866e425be2ef2664aa5c691bb3ab789736acf5 (patch) | |
tree | 03cc5c452dcf70228a467031ae3f1989755cd1c1 /drivers/md | |
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/md')
-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 4ea02c634d3..4fa915a21d0 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -7045,7 +7045,6 @@ void md_do_sync(mddev_t *mddev) } EXPORT_SYMBOL_GPL(md_do_sync); - static int remove_and_add_spares(mddev_t *mddev) { mdk_rdev_t *rdev; @@ -7157,6 +7156,9 @@ static void reap_sync_thread(mddev_t *mddev) */ void md_check_recovery(mddev_t *mddev) { + if (mddev->suspended) + return; + if (mddev->bitmap) bitmap_daemon_work(mddev); |