diff options
author | Li Zefan <lizefan@huawei.com> | 2013-04-26 14:58:03 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-04-26 14:58:03 -0400 |
commit | 7ef70e48735e17d2be5c8e8f85052842b16b923a (patch) | |
tree | ed5a6f181441dc96dbda4fcea6e14632d0231d93 /kernel/cgroup.c | |
parent | cc20e01cd607282d48f8ea538aba10fa850a4312 (diff) |
cgroup: restore the call to eventfd->poll()
I mistakenly removed the call to eventfd->poll() while I was actually
intending to remove the return value...
Calling evenfd->poll() will hook cgroup_event_wake() to the poll
waitqueue, which will be called to unregister eventfd when rmdir a
cgroup or close eventfd.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index bd4de465d5a9..3f14a1310d23 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -3882,6 +3882,8 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft, | |||
3882 | if (ret) | 3882 | if (ret) |
3883 | goto fail; | 3883 | goto fail; |
3884 | 3884 | ||
3885 | efile->f_op->poll(efile, &event->pt); | ||
3886 | |||
3885 | /* | 3887 | /* |
3886 | * Events should be removed after rmdir of cgroup directory, but before | 3888 | * Events should be removed after rmdir of cgroup directory, but before |
3887 | * destroying subsystem state objects. Let's take reference to cgroup | 3889 | * destroying subsystem state objects. Let's take reference to cgroup |