aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index a2c7bcb0e6eb..1f14a430c656 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -5415,8 +5415,12 @@ static int mem_cgroup_oom_notify_cb(struct mem_cgroup *memcg)
5415{ 5415{
5416 struct mem_cgroup_eventfd_list *ev; 5416 struct mem_cgroup_eventfd_list *ev;
5417 5417
5418 spin_lock(&memcg_oom_lock);
5419
5418 list_for_each_entry(ev, &memcg->oom_notify, list) 5420 list_for_each_entry(ev, &memcg->oom_notify, list)
5419 eventfd_signal(ev->eventfd, 1); 5421 eventfd_signal(ev->eventfd, 1);
5422
5423 spin_unlock(&memcg_oom_lock);
5420 return 0; 5424 return 0;
5421} 5425}
5422 5426