mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 23:02:08 +00:00
mm/oom_kill: remove unneeded is_memcg_oom check
oom_cpuset_eligible() is always called when !is_memcg_oom(). Remove this unnecessary check. Link: https://lkml.kernel.org/r/20220224115933.20154-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Acked-by: David Rientjes <rientjes@google.com> Acked-by: Michal Hocko <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4e0906008c
commit
bd8b77d653
@ -93,9 +93,6 @@ static bool oom_cpuset_eligible(struct task_struct *start,
|
||||
bool ret = false;
|
||||
const nodemask_t *mask = oc->nodemask;
|
||||
|
||||
if (is_memcg_oom(oc))
|
||||
return true;
|
||||
|
||||
rcu_read_lock();
|
||||
for_each_thread(start, tsk) {
|
||||
if (mask) {
|
||||
|
Loading…
Reference in New Issue
Block a user