Re: [BUG] infinite loop in find_get_pages()

From: Linus Torvalds
Date: Wed Sep 14 2011 - 18:37:42 EST


On Wed, Sep 14, 2011 at 2:53 PM, Hugh Dickins <hughd@xxxxxxxxxx> wrote:
>
> Thanks, Eric, though it may not be worth spending your time on it.
> It occurred to me over lunch that it may take painfully longer than
> expected to invalidate_mapping_pages() on a single-swapped-out-page
> 1TB sparse tmpfs file - all those "start += 1" restarts until it
> reaches the end.

So can we have a stop-gap patch to just fixes it for now? I assume
that would be Shaohua's patch with the "nr_found > nr_skip" change?

Can you guys send whatever patch is appropriate for now with a nice
changelog and the appropriate sign-offs, please? So that we can at
least close the issue...

Linus
--
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/