diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 62b547c168fc..866c4428ac7e 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1418,7 +1418,7 @@ static int get_any_page(struct page *p, unsigned long flags) * We raced with (possibly temporary) unhandlable * page, retry. */ - if (pass++ < 3) { + if (pass++ < GET_PAGE_MAX_RETRY_NUM) { shake_page(p); goto try_again; }