cgroup: restore the call to eventfd->poll()
authorLi Zefan <lizefan@huawei.com>
Fri, 26 Apr 2013 18:58:03 +0000 (11:58 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 26 Apr 2013 18:58:03 +0000 (11:58 -0700)
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>
kernel/cgroup.c

index bd4de46..3f14a13 100644 (file)
@@ -3882,6 +3882,8 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft,
        if (ret)
                goto fail;
 
+       efile->f_op->poll(efile, &event->pt);
+
        /*
         * Events should be removed after rmdir of cgroup directory, but before
         * destroying subsystem state objects. Let's take reference to cgroup