Home
last modified time | relevance | path

Searched refs:oom_lock (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/mm/
Doom_kill.c65 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()
Dmemcontrol.c1587 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()
Dpage_alloc.c3809 if (!mutex_trylock(&oom_lock)) { in __alloc_pages_may_oom()
3874 mutex_unlock(&oom_lock); in __alloc_pages_may_oom()
/Linux-v5.4/include/linux/
Doom.h57 extern struct mutex oom_lock;
Dmemcontrol.h245 bool oom_lock; member
/Linux-v5.4/drivers/tty/
Dsysrq.c372 mutex_lock(&oom_lock); in moom_callback()
375 mutex_unlock(&oom_lock); in moom_callback()