Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd807a2a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: page_alloc: avoid fatal sig check for GFP_NOFS"

parents 30c8fcf6 e53d2f74
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4646,7 +4646,8 @@ __alloc_pages_slowpath(gfp_t gfp_mask, unsigned int order,
	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 */