Unverified Commit 4c68d150 authored by Kexin Sun's avatar Kexin Sun Committed by Christian Brauner
Browse files

signal: update outdated comment for removed freezable_schedule()



The function freezable_schedule() was removed in commit
f5d39b02 ("freezer,sched: Rewrite core freezer logic"), which
rewrote the freezer to use a dedicated TASK_FROZEN state instead.

do_signal_stop() and ptrace_stop() no longer call
freezable_schedule(); they now set TASK_STOPPED/TASK_TRACED and the
freezer handles those states directly via TASK_FROZEN.  Update the
comment to reflect the current mechanism.

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: default avatarKexin Sun <kexinsun@smail.nju.edu.cn>
Link: https://patch.msgid.link/20260321105927.7979-1-kexinsun@smail.nju.edu.cn


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 68b95373
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2814,8 +2814,9 @@ bool get_signal(struct ksignal *ksig)

	/*
	 * Do this once, we can't return to user-mode if freezing() == T.
	 * do_signal_stop() and ptrace_stop() do freezable_schedule() and
	 * thus do not need another check after return.
	 * do_signal_stop() and ptrace_stop() set TASK_STOPPED/TASK_TRACED
	 * and the freezer handles those states via TASK_FROZEN, thus they
	 * do not need another check after return.
	 */
	try_to_freeze();