|
@@ -2696,6 +2696,9 @@ static int __mem_cgroup_try_charge(struct mm_struct *mm,
|
|
if (unlikely(task_in_memcg_oom(current)))
|
|
if (unlikely(task_in_memcg_oom(current)))
|
|
goto bypass;
|
|
goto bypass;
|
|
|
|
|
|
|
|
+ if (gfp_mask & __GFP_NOFAIL)
|
|
|
|
+ oom = false;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* We always charge the cgroup the mm_struct belongs to.
|
|
* We always charge the cgroup the mm_struct belongs to.
|
|
* The mm_struct's mem_cgroup changes on task migration if the
|
|
* The mm_struct's mem_cgroup changes on task migration if the
|