[linux-pm] [Suspend-devel] [PATCH -mm 1/2]: PM: Fix handling of stopped tasks

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

 



Hi.

On Tue, 2006-12-05 at 23:18 +0100, Rafael J. Wysocki wrote:
> > > It happens because we shouldn't count the stopped task as freezeable any
> > > more after we've set PF_FREEZE for it and we can fix that by adding
> > > 
> > > 	if (p->state == TASK_STOPPED && freezing(p))
> > > 		continue;
> > 
> > No, I'd actually like to force stopped task into refrigerator.
> 
> Well, we'd have to send SIGCONT to them for this purpose and then stop them
> back again during the resume.  Doesn't sound nice ...

I agree with Rafael. Contingencies for handling them being restarted by
other means is one thing, but restarting tasks that were stopped is
wrong. Who knows what work they might do between the SIGCONT and
freezing that (and this is the key point) the user doesn't want them to
do?

Regards,

Nigel



[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