md: Notify sysfs when RAID1/5/10 disk is In_sync.
authorAdrian Drzewiecki <adriand@vmware.com>
Wed, 18 Aug 2010 01:49:02 +0000 (11:49 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 18 Aug 2010 01:49:02 +0000 (11:49 +1000)
commite6ffbcb6cd0ac471223df24ae77eb486c1ee68cc
tree8739230c95a051c8ab95fdbfd90ec2e6ce0bf3c9
parent3a3a5ddb7a0f43c3dd0f98673f3d930a456725f8
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>
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c