Message ID | 20200514005034.nVmk0GIGf%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [1/7] mm, memcg: fix inconsistent oom event behavior | expand |
--- a/include/linux/memcontrol.h~mm-memcg-fix-inconsistent-oom-event-behavior +++ a/include/linux/memcontrol.h @@ -783,6 +783,8 @@ static inline void memcg_memory_event(st atomic_long_inc(&memcg->memory_events[event]); cgroup_file_notify(&memcg->events_file); + if (!cgroup_subsys_on_dfl(memory_cgrp_subsys)) + break; if (cgrp_dfl_root.flags & CGRP_ROOT_MEMORY_LOCAL_EVENTS) break; } while ((memcg = parent_mem_cgroup(memcg)) &&