From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932569AbcELMFU (ORCPT ); Thu, 12 May 2016 08:05:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:55676 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932159AbcELMFP (ORCPT ); Thu, 12 May 2016 08:05:15 -0400 Subject: Re: [PATCH] mm: fix pfn spans two sections in has_unmovable_pages() To: Xishi Qiu , Naoya Horiguchi References: <57304B9A.40504@huawei.com> <57305AD8.9090202@suse.cz> <57306038.1070907@huawei.com> <57346ADA.6050102@suse.cz> <57346FD6.6000306@huawei.com> Cc: Andrew Morton , Mel Gorman , Michal Hocko , David Rientjes , "'Kirill A . Shutemov'" , Joonsoo Kim , Taku Izumi , Alexander Duyck , Johannes Weiner , Linux MM , LKML From: Vlastimil Babka Message-ID: <5734716D.1070401@suse.cz> Date: Thu, 12 May 2016 14:05:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <57346FD6.6000306@huawei.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; >> >> >> . >> > > >