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

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

Merge "mm: avoid order-0 OOMs when there are LMK killable tasks"

parents 676bb42b ef9c07c2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3870,7 +3870,8 @@ should_reclaim_retry(gfp_t gfp_mask, unsigned order,
	 * their order will become available due to high fragmentation so
	 * always increment the no progress counter for them
	 */
	if (did_some_progress && order <= PAGE_ALLOC_COSTLY_ORDER)
	if ((did_some_progress || lmk_kill_possible()) &&
				order <= PAGE_ALLOC_COSTLY_ORDER)
		*no_progress_loops = 0;
	else
		(*no_progress_loops)++;