Re: [PATCH] mm: fix pfn spans two sections in has_unmovable_pages()

From: Vlastimil Babka
Date: Thu May 12 2016 - 08:05:25 EST


On 05/12/2016 01:58 PM, Xishi Qiu wrote:
On 2016/5/12 19:36, Vlastimil Babka wrote:

On 05/09/2016 12:02 PM, Xishi Qiu wrote:

Sounds ok, please try.


Hi Vlastimil and Naoya,

The mainline doesn't have this problem, because commit
add05cecef80 ("mm: soft-offline: don't free target page in successful
page migration") fixed it in v4.2.

I guess the above patch can't be applied to older kernel directly.
So shall we rewrite a new one or backport the whole patches which it depend?

I think it makes most sense here to write a <4.2 specific patch and send it just to stable. If the alternative of backporting add05cecef80 would be disruptive, mention that in the changelog. Try to pinpoint the commit that introduced the bug so the fix can have a proper "Fixes:" header.

Thanks,
Xishi Qiu


Thanks,
Xishi Qiu

for (found = 0, iter = 0; iter < pageblock_nr_pages; iter++) {
unsigned long check = pfn + iter;


.