[Devel] [PATCH RHEL8 COMMIT] oom: Initialize oom_rage_lock spinlock

Konstantin Khorenko khorenko at virtuozzo.com
Thu Aug 12 13:05:13 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-305.3.1.vz8.7.5
------>
commit 316e0ae07f6d65f10e34b0689b28a19aa1995fa2
Author: Evgenii Shatokhin <eshatokhin at virtuozzo.com>
Date:   Thu Aug 12 13:05:13 2021 +0300

    oom: Initialize oom_rage_lock spinlock
    
    Lockdep complained about it as follows:
    Done in the scope of https://jira.sw.ru/browse/PSBM-131983.
    
    Fixes: 8132f6df9b22 "oom: resurrect berserker mode"
    Signed-off-by: Evgenii Shatokhin <eshatokhin at virtuozzo.com>
---
 mm/memcontrol.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index ca599c9e99a7..cd12ec265c61 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -6047,6 +6047,7 @@ static struct mem_cgroup *mem_cgroup_alloc(void)
 		goto fail;
 
 	INIT_WORK(&memcg->high_work, high_work_func);
+	spin_lock_init(&memcg->oom_rage_lock);
 	INIT_LIST_HEAD(&memcg->oom_notify);
 	mutex_init(&memcg->thresholds_lock);
 	spin_lock_init(&memcg->move_lock);


More information about the Devel mailing list