Re: [PATCH v3] sched: cpuset: Don't rebuild root domains on suspend-resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13/03/2023 17:37, Juri Lelli wrote:
> On 11/03/23 18:51, Qais Yousef wrote:
>> On 03/09/23 14:23, Hao Luo wrote:
>>> On Wed, Mar 8, 2023 at 10:55 PM Juri Lelli <juri.lelli@xxxxxxxxxx> wrote:
>>>>
>>>> On 08/03/23 10:01, Hao Luo wrote:
>>>>> On Wed, Mar 8, 2023 at 2:20 AM Juri Lelli <juri.lelli@xxxxxxxxxx> wrote:
>>>>>>
>>>>>> On 01/03/23 17:03, Qais Yousef wrote:
>>>>>>> On 03/01/23 15:26, Juri Lelli wrote:

[...]

>> Yeah I am working on 5.10 too (this will need to be backported to 5.10 and 5.15
>> ultimately) and had the same crash because task is NULL.
>>
>> Fixed it this way which I think what you intended to do Juri? It moves the
>> check for dl_task(task) inside cgroup_taskset_for_each() loop.
>>
>> 	diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
>> 	index 83a8943467fb..06d6bb68d86b 100644
>> 	--- a/kernel/cgroup/cpuset.c
>> 	+++ b/kernel/cgroup/cpuset.c
>> 	@@ -2495,11 +2495,11 @@ static int cpuset_can_attach(struct cgroup_taskset *tset)
>> 			ret = security_task_setscheduler(task);
>> 			if (ret)
>> 				goto out_unlock;
>> 	-       }
>> 	 
>> 	-       if (dl_task(task)) {
>> 	-               cs->deadline_tasks++;
>> 	-               cpuset_attach_old_cs->deadline_tasks--;
>> 	+               if (dl_task(task)) {
>> 	+                       cs->deadline_tasks++;
>> 	+                       cpuset_attach_old_cs->deadline_tasks--;
>> 	+               }
>> 		}
>> 	 
>> 		/*
> 
> Duh, indeed.
> 
>> Like Hao I don't have any deadline tasks in the system. With the fix above
>> I don't notice the delay on suspend resume using your patches.
> 
> OK, cool.
> 
>> If you want any debug; please feel free to add them into your branch so I can
>> run with that and give you the log.
> 
> Will need to find time to run some tests with DEADLINE tasks, yeah.
> Maybe Dietmar, since you reported as well the issue above with your
> testing, you could help with testing DEADLINE?

Ah, now I see! It's the same issue I saw. And it's not specifically
related to DL tasks. Any tasks which you move into a cpuset will trigger
this.
Yeah, can do some DL tests later on this fix.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux