]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
signal: update outdated comment for removed freezable_schedule()
authorKexin Sun <kexinsun@smail.nju.edu.cn>
Sat, 21 Mar 2026 10:59:27 +0000 (18:59 +0800)
committerChristian Brauner <brauner@kernel.org>
Mon, 23 Mar 2026 15:38:31 +0000 (16:38 +0100)
The function freezable_schedule() was removed in commit
f5d39b020809 ("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: Kexin Sun <kexinsun@smail.nju.edu.cn>
Link: https://patch.msgid.link/20260321105927.7979-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Christian Brauner <brauner@kernel.org>
kernel/signal.c

index d65d0fe24bfb8c6f859ce47f36ab975308b1b598..926fe953a700dcbd95ebb4b91c51b29a82e6906a 100644 (file)
@@ -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();