diff options
author | Adrian Drzewiecki <adriand@vmware.com> | 2010-08-18 11:49:02 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-08-18 11:49:02 +1000 |
commit | e6ffbcb6cd0ac471223df24ae77eb486c1ee68cc (patch) | |
tree | 8739230c95a051c8ab95fdbfd90ec2e6ce0bf3c9 /drivers/md/raid10.c | |
parent | 3a3a5ddb7a0f43c3dd0f98673f3d930a456725f8 (diff) | |
download | kernel_samsung_smdk4412-e6ffbcb6cd0ac471223df24ae77eb486c1ee68cc.zip kernel_samsung_smdk4412-e6ffbcb6cd0ac471223df24ae77eb486c1ee68cc.tar.gz kernel_samsung_smdk4412-e6ffbcb6cd0ac471223df24ae77eb486c1ee68cc.tar.bz2 |
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/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index a88aeb5..76d1fc9 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -1130,6 +1130,7 @@ static int raid10_spare_active(mddev_t *mddev) spin_lock_irqsave(&conf->device_lock, flags); mddev->degraded--; spin_unlock_irqrestore(&conf->device_lock, flags); + sysfs_notify_dirent(tmp->rdev->sysfs_state); } } |