[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!

> > Actually, what do you think about this patch? It removes special
> > handling of TASK_TRACED, and should do the trick, too...
> 
> Well, I don't think so, ....

> > @@ -1702,7 +1702,9 @@ finish_stop(int stop_count)
> >  		read_unlock(&tasklist_lock);
> >  	}
> >  
> > -	schedule();
> > +	do {
> > +		schedule();
> > +	} while (try_to_freeze());
> >  	/*
> >  	 * Now we don't run again until continued.
> >  	 */
> 
> ... because if you want try_to_freeze() here to trigger, then the task in
> question should have PF_FREEZE set, but we don't set it anywhere.

?? We set it to all the processes, so stopped processes get it,
too...??
							Pavel

-- 
Thanks for all the (sleeping) penguins.


[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