Re: [PATCH] workqueue: Use active mask for new worker when pool is DISASSOCIATED

From: Schspa Shi
Date: Thu Jul 14 2022 - 11:28:51 EST



Peter Zijlstra <peterz@xxxxxxxxxxxxx> writes:

> On Wed, Jul 13, 2022 at 05:52:58PM +0800, Lai Jiangshan wrote:
>>
>>
>> CC Peter.
>> Peter has changed the CPU binding code in workqueue.c.
>
> [ 1622.829091] WARNING: CPU: 3 PID: 31 at kernel/sched/core.c:7756 sched_cpu_dying+0x74/0x204
> [ 1622.829374] CPU: 3 PID: 31 Comm: migration/3 Tainted: P O 5.10.59-rt52 #2
> ^^^^^^^^^^^^^^^^^^^^^
>
> I think we can ignore this as being some ancient kernel. Please try
> something recent.

I have merged all the workqueue changes from
Link: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git/log/kernel/workqueue.c?h=v5.10-rt

And this problem can still reproduce.

I checked the patch from master tree too, it seems there is no existed
patch can fix this problem.

Or are there any scheduler, process management related patches that
might fix this problem?

--
BRs
Schspa Shi