OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] cgroup: fix a race condition in manipulating tsk->cg_list
Re: [PATCH] cgroup: fix a race condition in manipulating tsk->cg_list [message #29560 is a reply to message #29556] Thu, 17 April 2008 05:20 Go to previous messageGo to previous message
Paul Menage is currently offline  Paul Menage
Messages: 642
Registered: September 2006
Senior Member
On Wed, Apr 16, 2008 at 9:59 PM, Andrew Morton
<akpm@linux-foundation.org> wrote:
>  >
>  > Task A starts exiting, passes the check for unlinking current->cg_list.
>
>  So cgroup_exit() sees !list_empty(tsk->cg_list)

We don't actually set up the links running through tsk->cg_list to the
css_set objects until the first time someone calls cgroup_iter_begin()
- so anyone who never actually uses cgroups doesn't pay the list
management overhead. So in this case, the list is empty.

Paul
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [PATCH 1/2] eCryptfs: Introduce device handle for userspace daemon communications
Next Topic: openvz: pull request
Goto Forum:
  


Current Time: Mon Oct 14 21:03:11 GMT 2024

Total time taken to generate the page: 0.05299 seconds