* [PATCH] Notify sysfs when RAID1 disk is In_sync.
@ 2010-07-26 19:49 Adrian Drzewiecki
0 siblings, 0 replies; only message in thread
From: Adrian Drzewiecki @ 2010-07-26 19:49 UTC (permalink / raw)
To: linux-raid, neilb; +Cc: egoggin
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.
Signed-off-by: Adrian Drzewiecki <adriand@vmware.com>
---
drivers/md/raid1.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index a948da8..fe241fc 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1136,6 +1136,7 @@ static int raid1_spare_active(mddev_t *mddev)
spin_lock_irqsave(&conf->device_lock, flags);
mddev->degraded--;
spin_unlock_irqrestore(&conf->device_lock, flags);
+ sysfs_notify_dirent(rdev->sysfs_state);
}
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-26 19:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 19:49 [PATCH] Notify sysfs when RAID1 disk is In_sync Adrian Drzewiecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).