From 27cdebeb11132cf39214b84137074ef10b43da0b Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 17 Nov 2011 10:41:26 +1100 Subject: [PATCH] mm-avoid-livelock-on-__gfp_fs-allocations-fix augment comment Cc: Andrea Arcangeli Cc: Colin Cross Cc: David Rientjes Cc: KAMEZAWA Hiroyuki Cc: Mel Gorman Cc: Pekka Enberg Signed-off-by: Andrew Morton --- mm/page_alloc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d768e40d2f16..a150e5a7a6ab 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2263,9 +2263,10 @@ rebalance: } /* - * Suspend converts GFP_KERNEL to __GFP_WAIT which can - * prevent reclaim making forward progress without - * invoking OOM. Bail if we are suspending + * Suspend converts GFP_KERNEL to __GFP_WAIT which can prevent + * reclaim making forward progress without invoking OOM. + * Suspend also disables storage devices so kswapd cannot save + * us. Bail if we are suspending. */ if (pm_suspending()) goto nopage; -- 2.39.5