[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9dca7c98-84e5-4d16-af76-93f2b0470243@kylinos.cn>
Date: Tue, 12 Aug 2025 16:07:11 +0800
From: Zihuan Zhang <zhangzihuan@...inos.cn>
To: Oleg Nesterov <oleg@...hat.com>
Cc: "Rafael J . Wysocki" <rafael@...nel.org>,
Peter Zijlstra <peterz@...radead.org>, David Hildenbrand <david@...hat.com>,
Michal Hocko <mhocko@...e.com>, Jonathan Corbet <corbet@....net>,
Ingo Molnar <mingo@...hat.com>, Juri Lelli <juri.lelli@...hat.com>,
Vincent Guittot <vincent.guittot@...aro.org>,
Dietmar Eggemann <dietmar.eggemann@....com>,
Steven Rostedt <rostedt@...dmis.org>, Ben Segall <bsegall@...gle.com>,
Mel Gorman <mgorman@...e.de>, Valentin Schneider <vschneid@...hat.com>,
len brown <len.brown@...el.com>, pavel machek <pavel@...nel.org>,
Kees Cook <kees@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>,
Lorenzo Stoakes <lorenzo.stoakes@...cle.com>,
"Liam R . Howlett" <Liam.Howlett@...cle.com>,
Vlastimil Babka <vbabka@...e.cz>, Mike Rapoport <rppt@...nel.org>,
Suren Baghdasaryan <surenb@...gle.com>,
Catalin Marinas <catalin.marinas@....com>, Nico Pache <npache@...hat.com>,
xu xin <xu.xin16@....com.cn>, wangfushuai <wangfushuai@...du.com>,
Andrii Nakryiko <andrii@...nel.org>, Christian Brauner <brauner@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>, Jeff Layton <jlayton@...nel.org>,
Al Viro <viro@...iv.linux.org.uk>, Adrian Ratiu
<adrian.ratiu@...labora.com>, linux-pm@...r.kernel.org, linux-mm@...ck.org,
linux-fsdevel@...r.kernel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH v1 6/9] freezer: Set default freeze priority for
zombie tasks
在 2025/8/8 22:29, Oleg Nesterov 写道:
> On 08/07, Zihuan Zhang wrote:
>> @@ -6980,6 +6981,7 @@ void __noreturn do_task_dead(void)
>> current->flags |= PF_NOFREEZE;
>>
>> __schedule(SM_NONE);
>> + freeze_set_default_priority(current, FREEZE_PRIORITY_NEVER);
>> BUG();
> But this change has no effect?
>
> Firstly, this last __schedule() should not return, note the BUG() we have.
>
> Secondly, this zombie is already PF_NOFREEZE, freeze_task() will return
> false anyway.
Thanks for pointing that out.
Indeed, I’ve noticed that in the current position the code has no effect.
If we move this code to a more appropriate place, it should improve both
safety and usefulness compared to the previous implementation.
> Oleg.
>
Powered by blists - more mailing lists