aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorAdrian Drzewiecki <adriand@vmware.com>2010-08-17 21:49:02 -0400
committerNeilBrown <neilb@suse.de>2010-08-17 21:49:02 -0400
commite6ffbcb6cd0ac471223df24ae77eb486c1ee68cc (patch)
tree8739230c95a051c8ab95fdbfd90ec2e6ce0bf3c9 /drivers/md/raid5.c
parent3a3a5ddb7a0f43c3dd0f98673f3d930a456725f8 (diff)
md: Notify sysfs when RAID1/5/10 disk is In_sync.
When RAID1 is done syncing disks, it'll update the state of synced rdevs to In_sync. But it neglected to notify sysfs that the attribute changed. So any programs that are waiting for an rdev's state to change will not be woken. (raid5/raid10 added by neilb) Signed-off-by: Adrian Drzewiecki <adriand@vmware.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 866d4b5a144c..7865dd090bde 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -5341,6 +5341,7 @@ static int raid5_spare_active(mddev_t *mddev)
5341 spin_lock_irqsave(&conf->device_lock, flags); 5341 spin_lock_irqsave(&conf->device_lock, flags);
5342 mddev->degraded--; 5342 mddev->degraded--;
5343 spin_unlock_irqrestore(&conf->device_lock, flags); 5343 spin_unlock_irqrestore(&conf->device_lock, flags);
5344 sysfs_notify_dirent(tmp->rdev->sysfs_state);
5344 } 5345 }
5345 } 5346 }
5346 print_raid5_conf(conf); 5347 print_raid5_conf(conf);