From: Li Zefan <lizf@cn.fujitsu.com>
To: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: containers@lists.linux-foundation.org, linux-mm@kvack.org,
Paul Menage <menage@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Balbir Singh <balbir@linux.vnet.ibm.com>,
Pavel Emelyanov <xemul@openvz.org>,
Dan Malek <dan@embeddedalley.com>,
Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Subject: Re: [PATCH v2 -mmotm 1/4] cgroups: Fix race between userspace and kernelspace
Date: Tue, 23 Feb 2010 11:17:28 +0800 [thread overview]
Message-ID: <4B8348C8.4050605@cn.fujitsu.com> (raw)
In-Reply-To: <1f8bd63acb6485c88f8539e009459a28fb6ad55b.1266853233.git.kirill@shutemov.name>
(Late reply for I just came back from a long vacation)
Kirill A. Shutemov wrote:
> 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@shutemov.name>
> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-02-23 3:17 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 15:43 [PATCH v2 -mmotm 1/4] cgroups: Fix race between userspace and kernelspace Kirill A. Shutemov
2010-02-22 15:43 ` [PATCH v2 -mmotm 2/4] cgroups: remove events before destroying subsystem state objects Kirill A. Shutemov
2010-02-22 15:43 ` [PATCH v2 -mmotm 3/4] cgroups: Add simple listener of cgroup events to documentation Kirill A. Shutemov
2010-02-22 15:43 ` [PATCH v2 -mmotm 4/4] memcg: Update memcg_test.txt to describe memory thresholds Kirill A. Shutemov
2010-02-23 3:19 ` [PATCH v2 -mmotm 3/4] cgroups: Add simple listener of cgroup events to documentation Li Zefan
2010-02-24 3:30 ` Li Zefan
[not found] ` <4B849D4C.2090800-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2010-02-24 11:36 ` Kirill A. Shutemov
2010-02-24 11:36 ` Kirill A. Shutemov
2010-02-23 3:18 ` [PATCH v2 -mmotm 2/4] cgroups: remove events before destroying subsystem state objects Li Zefan
2010-02-24 8:40 ` Balbir Singh
2010-02-24 11:42 ` Kirill A. Shutemov
2010-02-24 12:17 ` Balbir Singh
[not found] ` <cc557aab1002240342u1b0223a4td8269d727b004621-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-24 12:17 ` Balbir Singh
[not found] ` <20100224084005.GC2310-SINUvgVNF2CyUtPGxGje5AC/G2K4zDHf@public.gmane.org>
2010-02-24 11:42 ` Kirill A. Shutemov
[not found] ` <1f8bd63acb6485c88f8539e009459a28fb6ad55b.1266853233.git.kirill-oKw7cIdHH8eLwutG50LtGA@public.gmane.org>
2010-02-22 15:43 ` Kirill A. Shutemov
2010-02-23 3:17 ` [PATCH v2 -mmotm 1/4] cgroups: Fix race between userspace and kernelspace Li Zefan
[not found] ` <690745ebd257c74a1c47d552fec7fbb0b5efb7d0.1266853233.git.kirill-oKw7cIdHH8eLwutG50LtGA@public.gmane.org>
2010-02-22 15:43 ` [PATCH v2 -mmotm 3/4] cgroups: Add simple listener of cgroup events to documentation Kirill A. Shutemov
2010-02-23 3:18 ` [PATCH v2 -mmotm 2/4] cgroups: remove events before destroying subsystem state objects Li Zefan
[not found] ` <458c3169608cb333f390b2cb732565fec9fec67e.1266853234.git.kirill-oKw7cIdHH8eLwutG50LtGA@public.gmane.org>
2010-02-22 15:43 ` [PATCH v2 -mmotm 4/4] memcg: Update memcg_test.txt to describe memory thresholds Kirill A. Shutemov
2010-02-23 3:19 ` [PATCH v2 -mmotm 3/4] cgroups: Add simple listener of cgroup events to documentation Li Zefan
2010-02-24 3:30 ` Li Zefan
2010-02-24 8:40 ` [PATCH v2 -mmotm 2/4] cgroups: remove events before destroying subsystem state objects Balbir Singh
2010-02-24 7:12 ` [PATCH v2 -mmotm 1/4] cgroups: Fix race between userspace and kernelspace Balbir Singh
2010-02-23 3:17 ` Li Zefan [this message]
2010-02-24 7:12 ` Balbir Singh
-- strict thread matches above, loose matches on Subject: below --
2010-02-22 15:43 Kirill A. Shutemov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B8348C8.4050605@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=containers@lists.linux-foundation.org \
--cc=dan@embeddedalley.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=kirill@shutemov.name \
--cc=linux-mm@kvack.org \
--cc=menage@google.com \
--cc=nishimura@mxp.nes.nec.co.jp \
--cc=xemul@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.