Skip to content

Commit

Permalink
signal: Remove superflous try_to_freeze() loop in do_signal_stop()
Browse files Browse the repository at this point in the history
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 <tj@kernel.org>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Roland McGrath <roland@redhat.com>
  • Loading branch information
Tejun Heo committed Mar 23, 2011
1 parent 9f2bf65 commit 71db5eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 71db5eb

Please sign in to comment.