Skip to content

Commit 7ef70e4

Browse files
lizf-oshtejun
authored andcommitted
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>
1 parent cc20e01 commit 7ef70e4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/cgroup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3882,6 +3882,8 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft,
38823882
if (ret)
38833883
goto fail;
38843884

3885+
efile->f_op->poll(efile, &event->pt);
3886+
38853887
/*
38863888
* Events should be removed after rmdir of cgroup directory, but before
38873889
* destroying subsystem state objects. Let's take reference to cgroup

0 commit comments

Comments
 (0)