mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
mm: page_alloc: avoid fatal sig check for GFP_NOFS
Some of the fs allocations like those for journalling are critical and can cause a fatal error if allocation fails. Avoid bailing out early in those cases, even if a fatal signal is pending on the caller task. Change-Id: Ib2803d763313b196123a4c1e2c66227b5d6e6e14 Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This commit is contained in:
parent
98a140af35
commit
665cc127aa
1 changed files with 2 additions and 1 deletions
|
|
@ -4692,7 +4692,8 @@ retry:
|
|||
if (current->flags & PF_MEMALLOC)
|
||||
goto nopage;
|
||||
|
||||
if (fatal_signal_pending(current) && !(gfp_mask & __GFP_NOFAIL))
|
||||
if (fatal_signal_pending(current) && !(gfp_mask & __GFP_NOFAIL) &&
|
||||
(gfp_mask & __GFP_FS))
|
||||
goto nopage;
|
||||
|
||||
/* Try direct reclaim and then allocating */
|
||||
|
|
|
|||
Loading…
Reference in a new issue