Searched refs:oom_lock (Results 1 – 6 of 6) sorted by relevance
65 DEFINE_MUTEX(oom_lock);765 if (mutex_lock_killable(&oom_lock)) in oom_killer_disable()768 mutex_unlock(&oom_lock); in oom_killer_disable()1134 if (!mutex_trylock(&oom_lock)) in pagefault_out_of_memory()1137 mutex_unlock(&oom_lock); in pagefault_out_of_memory()
1587 if (mutex_lock_killable(&oom_lock)) in mem_cgroup_out_of_memory()1594 mutex_unlock(&oom_lock); in mem_cgroup_out_of_memory()1766 if (iter->oom_lock) { in mem_cgroup_oom_trylock()1775 iter->oom_lock = true; in mem_cgroup_oom_trylock()1788 iter->oom_lock = false; in mem_cgroup_oom_trylock()1805 iter->oom_lock = false; in mem_cgroup_oom_unlock()
3809 if (!mutex_trylock(&oom_lock)) { in __alloc_pages_may_oom()3874 mutex_unlock(&oom_lock); in __alloc_pages_may_oom()
57 extern struct mutex oom_lock;
245 bool oom_lock; member
372 mutex_lock(&oom_lock); in moom_callback()375 mutex_unlock(&oom_lock); in moom_callback()