lkml.org 
[lkml]   [2011]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFD 1/9] Change cpustat fields to an array.
On 09/27/2011 06:03 PM, Peter Zijlstra wrote:
> On Fri, 2011-09-23 at 19:20 -0300, Glauber Costa wrote:
>> @@ -623,6 +624,9 @@ static inline struct task_group *task_group(struct
>> task_struct *p)
>> struct task_group *tg;
>> struct cgroup_subsys_state *css;
>>
>> + if (!p->mm)
>> + return&root_task_group;
>> +
>> css = task_subsys_state_check(p, cpu_cgroup_subsys_id,
>> lockdep_is_held(&p->pi_lock) ||
>> lockdep_is_held(&task_rq(p)->lock));
>
> Hmm, why is that? Aren't kthreads part of the cgroup muck just as much
> as normal tasks are?
You're right. I had something else from another work I'm doing in mind
and got confused.
Will remove it.


\
 
 \ /
  Last update: 2011-09-28 17:17    [W:0.911 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site