Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754627Ab0KZTm6 (ORCPT ); Fri, 26 Nov 2010 14:42:58 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:33020 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751310Ab0KZTm5 (ORCPT ); Fri, 26 Nov 2010 14:42:57 -0500 From: "Rafael J. Wysocki" To: Tejun Heo Subject: Re: [PATCH 03/14] freezer: remove superflous try_to_freeze() loop in do_signal_stop() Date: Fri, 26 Nov 2010 20:42:21 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.37-rc3+; KDE/4.4.4; x86_64; ; ) Cc: roland@redhat.com, oleg@redhat.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, "rjw@sisk.plpavel"@ucw.cz References: <1290768569-16224-1-git-send-email-tj@kernel.org> <1290768569-16224-4-git-send-email-tj@kernel.org> In-Reply-To: <1290768569-16224-4-git-send-email-tj@kernel.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Message-Id: <201011262042.21444.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1246 Lines: 41 On Friday, November 26, 2010, Tejun Heo wrote: > do_signal_stop() is used only by get_signal_to_deliver() and after a > successful signal stop, it always calls try_to_freeze(), so the > try_to_freeze() loop around schedule() in do_signal_stop() is > superflous and confusing. Remove it. > > Signed-off-by: Tejun Heo > Cc: Oleg Nesterov > Cc: Roland McGrath > Cc: Rafael J. Wysocki Acked-by: Rafael J. Wysocki Thanks! > --- > kernel/signal.c | 4 +--- > 1 files changed, 1 insertions(+), 3 deletions(-) > > diff --git a/kernel/signal.c b/kernel/signal.c > index fe004b5..0a6816a 100644 > --- a/kernel/signal.c > +++ b/kernel/signal.c > @@ -1781,9 +1781,7 @@ static int do_signal_stop(int signr) > } > > /* Now we don't run again until woken by SIGCONT or SIGKILL */ > - do { > - schedule(); > - } while (try_to_freeze()); > + schedule(); > > tracehook_finish_jctl(); > current->exit_code = 0; > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/