[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87pmwjpp0s.fsf@yhuang6-desk2.ccr.corp.intel.com>
Date: Fri, 18 Jun 2021 16:15:15 +0800
From: "Huang, Ying" <ying.huang@...el.com>
To: Oscar Salvador <osalvador@...e.de>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Yang Shi <yang.shi@...ux.alibaba.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Yang Shi <shy828301@...il.com>, Michal Hocko <mhocko@...e.com>,
Wei Xu <weixugc@...gle.com>,
Dan Williams <dan.j.williams@...el.com>,
David Hildenbrand <david@...hat.com>
Subject: Re: [PATCH -V8 04/10] mm/migrate: make migrate_pages() return
nr_succeeded
Oscar Salvador <osalvador@...e.de> writes:
> On Fri, Jun 18, 2021 at 02:15:31PM +0800, Huang Ying wrote:
>> From: Yang Shi <yang.shi@...ux.alibaba.com>
>>
>> The migrate_pages() returns the number of pages that were not migrated,
>> or an error code. When returning an error code, there is no way to know
>> how many pages were migrated or not migrated.
>>
>> In the following patch, migrate_pages() is used to demote pages to PMEM
>> node, we need account how many pages are reclaimed (demoted) since page
>> reclaim behavior depends on this. Add *nr_succeeded parameter to make
>> migrate_pages() return how many pages are demoted successfully for all
>> cases.
>>
>> Signed-off-by: Yang Shi <yang.shi@...ux.alibaba.com>
>> Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
>> Signed-off-by: "Huang, Ying" <ying.huang@...el.com>
>> Reviewed-by: Yang Shi <shy828301@...il.com>
>> Cc: Michal Hocko <mhocko@...e.com>
>> Cc: Wei Xu <weixugc@...gle.com>
>> Cc: Dan Williams <dan.j.williams@...el.com>
>> Cc: David Hildenbrand <david@...hat.com>
>> Cc: osalvador <osalvador@...e.de>
>
> I thought we all agreed on making nr_succeed an optional argument [1].
> It reduced the churn quite a lot.
>
> [1] https://patchwork.kernel.org/comment/24104453/
Sorry. Forget changing this. Will change it in the next version.
Best Regards,
Huang, Ying
Powered by blists - more mailing lists