Searched refs:oom_lock (Results 1 – 7 of 7) sorted by relevance
57 extern struct mutex oom_lock;
245 bool oom_lock; member
67 DEFINE_MUTEX(oom_lock);823 if (mutex_lock_killable(&oom_lock)) in oom_killer_disable()826 mutex_unlock(&oom_lock); in oom_killer_disable()
1665 lockdep_assert_held(&oom_lock); in mem_cgroup_print_oom_meminfo()1730 if (mutex_lock_killable(&oom_lock)) in mem_cgroup_out_of_memory()1743 mutex_unlock(&oom_lock); in mem_cgroup_out_of_memory()1816 if (iter->oom_lock) { in mem_cgroup_oom_trylock()1825 iter->oom_lock = true; in mem_cgroup_oom_trylock()1838 iter->oom_lock = false; in mem_cgroup_oom_trylock()1855 iter->oom_lock = false; in mem_cgroup_oom_unlock()
3291 if (!mutex_trylock(&oom_lock)) { in __alloc_pages_may_oom()3355 mutex_unlock(&oom_lock); in __alloc_pages_may_oom()
4628 if (mutex_trylock(&oom_lock)) { in lru_gen_age_node()4635 mutex_unlock(&oom_lock); in lru_gen_age_node()
396 mutex_lock(&oom_lock); in moom_callback()399 mutex_unlock(&oom_lock); in moom_callback()