diff options
author | Li Zefan <lizefan@huawei.com> | 2013-03-12 18:36:00 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-12 18:36:00 -0400 |
commit | 80f36c2a1a612ca419e5b864a7e4808e797d9feb (patch) | |
tree | 80ec8f4a04ffbfe7675201b1292edbe96a93ea60 /kernel/cgroup.c | |
parent | 6ee211ad0a22869af81eef10845922ac4dcb2d38 (diff) |
cgroup: remove useless code in cgroup_write_event_control()
eventfd_poll() never returns POLLHUP.
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 | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 29c77a714731..c7fe303b5109 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -3937,12 +3937,6 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft, | |||
3937 | if (ret) | 3937 | if (ret) |
3938 | goto fail; | 3938 | goto fail; |
3939 | 3939 | ||
3940 | if (efile->f_op->poll(efile, &event->pt) & POLLHUP) { | ||
3941 | event->cft->unregister_event(cgrp, event->cft, event->eventfd); | ||
3942 | ret = 0; | ||
3943 | goto fail; | ||
3944 | } | ||
3945 | |||
3946 | /* | 3940 | /* |
3947 | * Events should be removed after rmdir of cgroup directory, but before | 3941 | * Events should be removed after rmdir of cgroup directory, but before |
3948 | * destroying subsystem state objects. Let's take reference to cgroup | 3942 | * destroying subsystem state objects. Let's take reference to cgroup |