Re: [PATCH 09/27] mm, vmscan: Simplify the logic deciding whether kswapd sleeps
From: Johannes Weiner
Date: Sun Feb 28 2016 - 11:17:09 EST
On Tue, Feb 23, 2016 at 03:04:32PM +0000, Mel Gorman wrote:
> kswapd goes through some complex steps trying to figure out if it
> should stay awake based on the classzone_idx and the requested order.
> It is unnecessarily complex and passes in an invalid classzone_idx to
> balance_pgdat(). What matters most of all is whether a larger order has
> been requsted and whether kswapd successfully reclaimed at the previous
> order. This patch irons out the logic to check just that and the end result
> is less headache inducing.
> Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>
Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>