diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-08-07 04:55:03 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-08-07 04:55:03 -0400 |
commit | 4fb8af10d0fd09372d52966b76922b9e82bbc950 (patch) | |
tree | d240e4d40357583e3f3eb228dccf20122a5b31ed /drivers/md/md.c | |
parent | f44f82e8a20b98558486eb14497b2f71c78fa325 (diff) | |
parent | 64a99d2a8c3ed5c4e39f3ae1cc682aa8fd3977fc (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index c2ff77ccec50..c7aae66c6f9b 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -3483,7 +3483,7 @@ static void md_safemode_timeout(unsigned long data) | |||
3483 | if (!atomic_read(&mddev->writes_pending)) { | 3483 | if (!atomic_read(&mddev->writes_pending)) { |
3484 | mddev->safemode = 1; | 3484 | mddev->safemode = 1; |
3485 | if (mddev->external) | 3485 | if (mddev->external) |
3486 | sysfs_notify(&mddev->kobj, NULL, "array_state"); | 3486 | set_bit(MD_NOTIFY_ARRAY_STATE, &mddev->flags); |
3487 | } | 3487 | } |
3488 | md_wakeup_thread(mddev->thread); | 3488 | md_wakeup_thread(mddev->thread); |
3489 | } | 3489 | } |
@@ -5996,7 +5996,8 @@ static int remove_and_add_spares(mddev_t *mddev) | |||
5996 | if (mddev->degraded) { | 5996 | if (mddev->degraded) { |
5997 | rdev_for_each(rdev, rtmp, mddev) { | 5997 | rdev_for_each(rdev, rtmp, mddev) { |
5998 | if (rdev->raid_disk >= 0 && | 5998 | if (rdev->raid_disk >= 0 && |
5999 | !test_bit(In_sync, &rdev->flags)) | 5999 | !test_bit(In_sync, &rdev->flags) && |
6000 | !test_bit(Blocked, &rdev->flags)) | ||
6000 | spares++; | 6001 | spares++; |
6001 | if (rdev->raid_disk < 0 | 6002 | if (rdev->raid_disk < 0 |
6002 | && !test_bit(Faulty, &rdev->flags)) { | 6003 | && !test_bit(Faulty, &rdev->flags)) { |
@@ -6051,6 +6052,9 @@ void md_check_recovery(mddev_t *mddev) | |||
6051 | if (mddev->bitmap) | 6052 | if (mddev->bitmap) |
6052 | bitmap_daemon_work(mddev->bitmap); | 6053 | bitmap_daemon_work(mddev->bitmap); |
6053 | 6054 | ||
6055 | if (test_and_clear_bit(MD_NOTIFY_ARRAY_STATE, &mddev->flags)) | ||
6056 | sysfs_notify(&mddev->kobj, NULL, "array_state"); | ||
6057 | |||
6054 | if (mddev->ro) | 6058 | if (mddev->ro) |
6055 | return; | 6059 | return; |
6056 | 6060 | ||