[linux-pm] Re: Hotplug events during sleep transition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 23, 2005 at 04:22:44PM -0500, Alan Stern wrote:
> On Fri, 23 Dec 2005, Pavel Machek wrote:
> 
> > Well, if you can find some elegant solution in the core, I think thats
> > the best way.
> > 
> > You could set system_state to "suspending" or something like that, and
> > just if() out notifications in that case.
> 
> How about simply adding a call to try_to_freeze() somewhere inside 
> kernel/kmod.c:____call_usermodehelper()?  That ought to do pretty much 
> what I want, in theory.  The hotplug processes would get frozen before 
> /sbin/hotplug is exec'ed.

On modern distros, /sbin/hotplug is set to NULL, so this isn't an issue.
We use netlink to send the data out, so this might not even be a problem
anymore...

thanks,

greg k-h

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux