Re: [PATCH] sched: fix another race when reading /proc/sched_debug

From: Paul Menage
Date: Fri Dec 19 2008 - 09:07:01 EST


On Thu, Dec 18, 2008 at 8:37 PM, Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:
>>
>> Can't we detect a dead task-group and skip those instead of adding this
>> global lock?
>>
>
> Now we can, there is a css_is_removed() function.
>

With the patch that makes cgroup_path() RCU-safe, you shouldn't need
to do any additional skipping or locking.

Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/