On 08/11, Zihuan Zhang wrote:
在 2025/8/8 22:39, Oleg Nesterov 写道:How so? sorry I don't follow.
On 08/07, Zihuan Zhang wrote:I think there is resaon put it here. For example, systemd-sleep is a
--- a/kernel/power/process.cBut why?
+++ b/kernel/power/process.c
@@ -147,6 +147,7 @@ int freeze_processes(void)
pm_wakeup_clear(0);
pm_freezing = true;
+ freeze_set_default_priority(current, FREEZE_PRIORITY_NEVER);
Again, freeze_task() will return false anyway, this process is
PF_SUSPEND_TASK.
user-space process that executes the suspend flow.
If we don’t set its freeze priority explicitly, our current code may end up
with this user process being the last one that cannot freeze.
Oleg.