diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2010-03-10 18:22:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-12 18:52:37 -0500 |
commit | a0a4db548edcce067c1201ef25cf2bc29f32dca4 (patch) | |
tree | 6f8139a582179666cd248d978332ed0e32ad9f0f /include/linux/cgroup.h | |
parent | 4ab78683c17d739c2a2077141dcf81a02b7fb57e (diff) |
cgroups: remove events before destroying subsystem state objects
Events should be removed after rmdir of cgroup directory, but before
destroying subsystem state objects. Let's take reference to cgroup
directory dentry to do that.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hioryu@jp.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Dan Malek <dan@embeddedalley.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index b4f2201321cd..b8ad1ea99586 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -396,9 +396,6 @@ struct cftype { | |||
396 | * closes the eventfd or on cgroup removing. | 396 | * closes the eventfd or on cgroup removing. |
397 | * This callback must be implemented, if you want provide | 397 | * This callback must be implemented, if you want provide |
398 | * notification functionality. | 398 | * notification functionality. |
399 | * | ||
400 | * Be careful. It can be called after destroy(), so you have | ||
401 | * to keep all nesessary data, until all events are removed. | ||
402 | */ | 399 | */ |
403 | int (*unregister_event)(struct cgroup *cgrp, struct cftype *cft, | 400 | int (*unregister_event)(struct cgroup *cgrp, struct cftype *cft, |
404 | struct eventfd_ctx *eventfd); | 401 | struct eventfd_ctx *eventfd); |