cgroups: remove rcu_read_lock() in cgroupstats_build()
Changes
1 files changed · +0 −2
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| kernel/cgroup.c | modified | +0 | −2 | View file |
kernel/cgroup.c
View filediff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 61e92c5..f55af3d 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -2055,7 +2055,6 @@ int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry)
ret = 0;
cgrp = dentry->d_fsdata;
- rcu_read_lock();
cgroup_iter_start(cgrp, &it);
while ((tsk = cgroup_iter_next(cgrp, &it))) {
@@ -2080,7 +2079,6 @@ int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry)
}
cgroup_iter_end(cgrp, &it);
- rcu_read_unlock();
err:
return ret;
}