From: Adrian Drzewiecki <adriand@vmware.com>
To: linux-raid@vger.kernel.org, neilb@suse.de
Cc: egoggin@vmware.com
Subject: [PATCH] Notify sysfs when RAID1 disk is In_sync.
Date: Mon, 26 Jul 2010 15:49:44 -0400 [thread overview]
Message-ID: <20100726194943.GD6720@adriand-dev3.eng.vmware.com> (raw)
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);
}
}
reply other threads:[~2010-07-26 19:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100726194943.GD6720@adriand-dev3.eng.vmware.com \
--to=adriand@vmware.com \
--cc=egoggin@vmware.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).