From: Li Zefan Date: Fri, 26 Apr 2013 18:58:03 +0000 (-0700) Subject: cgroup: restore the call to eventfd->poll() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ef70e48735e17d2be5c8e8f85052842b16b923a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Tejun Heo --- 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, 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