Re: [PATCH v4 5/7] mm,hwpoison: drain pcplists before bailing out for non-buddy zero-refcount page

From: HORIGUCHI NAOYA(堀口 直也)
Date: Thu Sep 24 2020 - 22:27:51 EST


On Thu, Sep 17, 2020 at 10:10:47AM +0200, Oscar Salvador wrote:
> A page with 0-refcount and !PageBuddy could perfectly be a pcppage.
> Currently, we bail out with an error if we encounter such a page, meaning
> that we do not handle pcppages neither from hard-offline nor from
> soft-offline path.
>
> Fix this by draining pcplists whenever we find this kind of page and retry
> the check again. It might be that pcplists have been spilled into the
> buddy allocator and so we can handle it.
>
> Signed-off-by: Oscar Salvador <osalvador@xxxxxxx>

Acked-by: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>