linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 15/25] dm: add uevent change event on resume
@ 2006-09-14 21:47 Alasdair G Kergon
  2006-09-15 22:57 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Alasdair G Kergon @ 2006-09-14 21:47 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Hannes Reinecke, Kay Sievers

From: Hannes Reinecke <hare@suse.de>

Device-mapper devices are not accessible until a 'resume' ioctl has been
issued.  For userspace to find out when this happens we need to generate an
uevent for udev to take appropriate action.

As discussed at OLS we should send 'change' events for 'resume'.
We can think of no useful purpose served by also having 'suspend' events.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>

Index: linux-2.6.18-rc7/drivers/md/dm.c
===================================================================
--- linux-2.6.18-rc7.orig/drivers/md/dm.c	2006-09-14 20:26:19.000000000 +0100
+++ linux-2.6.18-rc7/drivers/md/dm.c	2006-09-14 20:55:52.000000000 +0100
@@ -1378,6 +1378,8 @@ int dm_resume(struct mapped_device *md)
 
 	dm_table_unplug_all(map);
 
+	kobject_uevent(&md->disk->kobj, KOBJ_CHANGE);
+
 	r = 0;
 
 out:

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 15/25] dm: add uevent change event on resume
  2006-09-14 21:47 [PATCH 15/25] dm: add uevent change event on resume Alasdair G Kergon
@ 2006-09-15 22:57 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2006-09-15 22:57 UTC (permalink / raw)
  To: Alasdair G Kergon, Andrew Morton, linux-kernel, Hannes Reinecke,
	Kay Sievers

On Thu, Sep 14, 2006 at 10:47:29PM +0100, Alasdair G Kergon wrote:
> From: Hannes Reinecke <hare@suse.de>
> 
> Device-mapper devices are not accessible until a 'resume' ioctl has been
> issued.  For userspace to find out when this happens we need to generate an
> uevent for udev to take appropriate action.
> 
> As discussed at OLS we should send 'change' events for 'resume'.
> We can think of no useful purpose served by also having 'suspend' events.
> 
> Signed-off-by: Hannes Reinecke <hare@suse.de>
> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
> Signed-off-by: Alasdair G Kergon <agk@redhat.com>

I was at that meeting for a bit (had to chase after my son...) so feel
free to add:
	Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

from me to this patch.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-15 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-14 21:47 [PATCH 15/25] dm: add uevent change event on resume Alasdair G Kergon
2006-09-15 22:57 ` Greg KH

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).