From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH -mm 1/2]: PM: Fix handling of stopped tasks Date: Tue, 5 Dec 2006 15:22:42 +0100 Message-ID: <200612051522.43504.rjw@sisk.pl> References: <200612032318.29030.rjw@sisk.pl> <200612051206.40709.rjw@sisk.pl> <20061205141331.GB4637@ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061205141331.GB4637@ucw.cz> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: suspend-devel-bounces@lists.sourceforge.net Errors-To: suspend-devel-bounces@lists.sourceforge.net To: Pavel Machek Cc: suspend-devel List , pm list , Stephen Hemminger List-Id: linux-pm@vger.kernel.org Hi, On Tuesday, 5 December 2006 15:13, Pavel Machek wrote: > 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...?? No, we don't. We only set it for the processes for which freezeable() returns 1. Greetings, Rafael -- If you don't have the time to read, you don't have the time or the tools to write. - Stephen King ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV