[PATCHv2] mm/sparse: reset section's mem_map when fully deactivated

2020-01-19 Thread Pingfan Liu
After commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug"), when a mem section is fully deactivated, section_mem_map still records the section's start pfn, which is not used any more and will be reassigned during re-added. In analogy with alloc/free pattern, it is better to clear all

Re: [PATCHv2] mm/sparse: reset section's mem_map when fully deactivated

2020-01-19 Thread Michal Hocko
On Mon 20-01-20 10:33:14, Pingfan Liu wrote: > After commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug"), > when a mem section is fully deactivated, section_mem_map still records the > section's start pfn, which is not used any more and will be reassigned > during re-added. > > In an

Re: [PATCHv2] mm/sparse: reset section's mem_map when fully deactivated

2020-01-20 Thread David Hildenbrand
On 20.01.20 08:29, Michal Hocko wrote: > On Mon 20-01-20 10:33:14, Pingfan Liu wrote: >> After commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug"), >> when a mem section is fully deactivated, section_mem_map still records the >> section's start pfn, which is not used any more and will

Re: [PATCHv2] mm/sparse: reset section's mem_map when fully deactivated

2020-01-20 Thread Pingfan Liu
On Mon, Jan 20, 2020 at 5:03 PM David Hildenbrand wrote: > [...] > I think you dropped my > > Acked-by: David Hildenbrand > Sorry to forget it. Thanks for your kind review. Regards, Pingfan ___ kexec mailing list kexec@lists.infradead.org http://lists

Re: [PATCHv2] mm/sparse: reset section's mem_map when fully deactivated

2020-01-23 Thread Andrew Morton
On Mon, 20 Jan 2020 08:29:39 +0100 Michal Hocko wrote: > On Mon 20-01-20 10:33:14, Pingfan Liu wrote: > > After commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug"), > > when a mem section is fully deactivated, section_mem_map still records the > > section's start pfn, which is not u

Re: [PATCHv2] mm/sparse: reset section's mem_map when fully deactivated

2020-01-23 Thread Michal Hocko
On Thu 23-01-20 19:10:47, Andrew Morton wrote: > On Mon, 20 Jan 2020 08:29:39 +0100 Michal Hocko wrote: > > > On Mon 20-01-20 10:33:14, Pingfan Liu wrote: > > > After commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug"), > > > when a mem section is fully deactivated, section_mem_map

Re: [PATCHv2] mm/sparse: reset section's mem_map when fully deactivated

2020-01-25 Thread Pingfan Liu
On Fri, Jan 24, 2020 at 2:49 PM Michal Hocko wrote: > > On Thu 23-01-20 19:10:47, Andrew Morton wrote: > > On Mon, 20 Jan 2020 08:29:39 +0100 Michal Hocko wrote: > > > > > On Mon 20-01-20 10:33:14, Pingfan Liu wrote: > > > > After commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug"),