Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71db5eb9 authored by Tejun Heo's avatar Tejun Heo
Browse files

signal: Remove superflous try_to_freeze() loop in do_signal_stop()



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: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarOleg Nesterov <oleg@redhat.com>
Acked-by: default avatarRoland McGrath <roland@redhat.com>
parent 9f2bf651
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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());

	tracehook_finish_jctl();
	current->exit_code = 0;