Re: [BUG] infinite loop in find_get_pages()
From: Eric Dumazet
Date: Thu Sep 15 2011 - 00:03:20 EST
Le jeudi 15 septembre 2011 Ã 08:45 +0800, Shaohua Li a Ãcrit :
> here is my patch if you want to close the issue at hand.
>
> Subject: mm: account skipped entries to avoid looping in find_get_pages
>
> The found entries by find_get_pages() could be all swap entries. In
> this case we skip the entries, but make sure the skipped entries are
> accounted, so we don't keep looping.
> Using nr_found > nr_skip to simplify code as suggested by Eric.
>
> Reported-and-tested-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>
> Signed-off-by: Shaohua Li <shaohua.li@xxxxxxxxx>
>
Yep, I guess Hugh can refine it later.
I'm pulling latest Linus tree (including this patch) and redo a stress
session, including transparent hugepage games.
Thanks !
--
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/