From: Kay Sievers <kay.sievers@vrfy.org>
To: Alasdair G Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com
Subject: send 'change' uevent for device-mapper table resume
Date: Sun, 13 Aug 2006 16:04:56 +0200 [thread overview]
Message-ID: <20060813140456.GA8170@vrfy.org> (raw)
Hi Alasdair,
I'm not sure if Hannes already sent this, if not, please take this into
your tree. As discussed at OLS, this is one step, to make udev's operation
on dm devices more reliable.
Thanks,
Kay
From: Hannes Reinecke <hare@suse.de>
device-mapper: send 'change' uevent for device-mapper table resume
Device-mapper tables are only ever usable after a 'resume'
ioctl has been issued. But to know when this happens we need to
generate an uevent to notify udev, so that it can take appropriate
action.
As discussed with agk and kay at OLS we should be sending 'change' events
for resume; events on suspend don't give you anything interesting and indeed
might lead to failures as any I/O on that table will be blocked anyway.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
--
dm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index c99bf9f..93014c4 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1337,6 +1337,8 @@ int dm_resume(struct mapped_device *md)
dm_table_unplug_all(map);
+ kobject_uevent(&md->disk->kobj, KOBJ_CHANGE);
+
r = 0;
out:
reply other threads:[~2006-08-13 14:04 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=20060813140456.GA8170@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.