[linux-pm] Re: freeze_processes questions

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

 



Hi!

> > > > What happens if a process owns a lock needed to suspend a device and it is 
> > > > waiting in TASK_UNINTERRUPTIBLE?
> > > 
> > > Well, we're in trouble. :-)
> > > 
> > > However, if any process that we have frozen owns such a lock, we're in trouble
> > > too.
> > 
> > No, we are not. Processes can't own any locks when they are in
> > refrigerator... It is not ok to call refrigerator from any context
> > where you own a lock.
> 
> I didn't mean a lock in general, but a lock that is needed to
> suspend a device.

Processes in refrigerator are not allowed to own any locks. That means
they may not own a lock that is needed to suspend a device ;-).

OTOH... we may want to move completely away from refrigerator. Its
quite a hack, and it device support is okay, we'll not really need it.

								Pavel
-- 
Boycott Kodak -- for their patent abuse against Java.

[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