[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b61869c0-bb1b-dd4d-bcc5-afe509a0cfc3@redhat.com>
Date: Tue, 8 Sep 2020 11:10:40 +0200
From: David Hildenbrand <david@...hat.com>
To: Michal Hocko <mhocko@...e.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Wei Yang <richard.weiyang@...ux.alibaba.com>,
Baoquan He <bhe@...hat.com>,
Pankaj Gupta <pankaj.gupta.linux@...il.com>,
Oscar Salvador <osalvador@...e.de>
Subject: Re: [PATCH v2 03/10] mm/memory_hotplug: simplify page offlining
On 07.09.20 08:45, Michal Hocko wrote:
> On Fri 04-09-20 12:21:34, Andrew Morton wrote:
>> On Fri, 4 Sep 2020 07:47:45 +0200 David Hildenbrand <david@...hat.com> wrote:
> [...]
>> @@ -1589,9 +1567,7 @@ int __ref offline_pages(unsigned long st
>> reason = "failure to dissolve huge pages";
>> goto failed_removal_isolated;
>> }
>> - /* check again */
>> - ret = walk_system_ram_range(start_pfn, end_pfn - start_pfn,
>> - NULL, check_pages_isolated_cb);
>> +
>> /*
>> * per-cpu pages are drained in start_isolate_page_range, but if
>> * there are still pages that are not free, make sure that we
>> @@ -1604,15 +1580,15 @@ int __ref offline_pages(unsigned long st
>> * because has_unmovable_pages explicitly checks for
>> * PageBuddy on freed pages on other zones.
>> */
>> + ret = test_pages_isolated(start_pfn, end_pfn, MEMORY_OFFLINE);
>> if (ret)
>> drain_all_pages(zone);
>> } while (ret);
>
> Looks ok
>
Agreed, thanks Michal and Andrew.
--
Thanks,
David / dhildenb
Powered by blists - more mailing lists