[PATCH v2 -mmotm 1/4] cgroups: Fix race between userspace and kernelspace

Balbir Singh balbir at linux.vnet.ibm.com
Tue Feb 23 23:12:58 PST 2010


* Kirill A. Shutemov <kirill at shutemov.name> [2010-02-22 17:43:39]:

> eventfd are used to notify about two types of event:
>  - control file-specific, like crossing memory threshold;
>  - cgroup removing.
> 
> To understand what really happen, userspace can check if the cgroup
> still exists. To avoid race beetween userspace and kernelspace we have
> to notify userspace about cgroup removing only after rmdir of cgroup
> directory.
> 
> Signed-off-by: Kirill A. Shutemov <kirill at shutemov.name>
> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>

That does make sense, looks good to me. You've already got the
necessary acks.

-- 
	Three Cheers,
	Balbir


More information about the Containers mailing list