Re: [PATCH 1/2] Check PageUnevictable in lru_deactivate_fn

From: Rik van Riel
Date: Mon May 02 2011 - 10:57:00 EST


On 05/01/2011 11:03 AM, Minchan Kim wrote:
The lru_deactivate_fn should not move page which in on unevictable lru
into inactive list. Otherwise, we can meet BUG when we use isolate_lru_pages
as __isolate_lru_page could return -EINVAL.
It's really BUG and let's fix it.

Reported-by: Ying Han<yinghan@xxxxxxxxxx>
Tested-by: Ying Han<yinghan@xxxxxxxxxx>
Signed-off-by: Minchan Kim<minchan.kim@xxxxxxxxx>

Reviewed-by: Rik van Riel<riel@xxxxxxxxxx>

--
All rights reversed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/