Merge tag 'cgroup-for-7.3-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
Merge commit. Changes below are compared with the first parent: f2c53ea9.
Changes
2 files changed · +6 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| kernel/cgroup/pids.c | modified | +5 | −0 | View file |
| tools/testing/selftests/cgroup/test_memcontrol.c | modified | +1 | −1 | View file |
kernel/cgroup/pids.c
View filediff --git a/kernel/cgroup/pids.c b/kernel/cgroup/pids.c
index ecbb839..78cdc05 100644
--- a/kernel/cgroup/pids.c
+++ b/kernel/cgroup/pids.c
@@ -253,6 +253,11 @@ static void pids_event(struct pids_cgroup *pids_forking,
}
if (!cgroup_subsys_on_dfl(pids_cgrp_subsys) ||
cgrp_dfl_root.flags & CGRP_ROOT_PIDS_LOCAL_EVENTS) {
+ /*
+ * pids.events reports the local counter on legacy hierarchies
+ * and when pids_localevents is enabled.
+ */
+ cgroup_file_notify(&p->events_file);
cgroup_file_notify(&p->events_local_file);
return;
}
tools/testing/selftests/cgroup/test_memcontrol.c
View filediff --git a/tools/testing/selftests/cgroup/test_memcontrol.c b/tools/testing/selftests/cgroup/test_memcontrol.c
index 3a84d06..0ed8234 100644
--- a/tools/testing/selftests/cgroup/test_memcontrol.c
+++ b/tools/testing/selftests/cgroup/test_memcontrol.c
@@ -30,7 +30,7 @@ static int page_size;
int get_temp_fd(void)
{
- return open(".", O_TMPFILE | O_RDWR | O_EXCL);
+ return open(".", O_TMPFILE | O_RDWR | O_EXCL, 0600);
}
int alloc_pagecache(int fd, size_t size)