From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: freeze_processes questions Date: Tue, 5 Apr 2005 11:20:44 +0200 Message-ID: <200504051120.44496.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============43730076760992187==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org To: Pavel Machek Cc: Linux-pm mailing list List-Id: linux-pm@vger.kernel.org --===============43730076760992187== Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I have two questions regarding freeze_processes(): 1) Shouldn't we take the TASK_UNINTERRUPTIBLE state into consideration? Now we will fail if a process is sleeping when we try to freeze it. 2) Is it necessary to check p->state == TASK_STOPPED and p->state == TASK_TRACED twice in a row (once in freezable() and then again in the next if ())? Greets, Rafael -- - Would you tell me, please, which way I ought to go from here? - That depends a good deal on where you want to get to. -- Lewis Carroll "Alice's Adventures in Wonderland" --===============43730076760992187== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --===============43730076760992187==--