Message ID | 20181116083020.20260-4-mhocko@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mm, memory_hotplug: improve memory offlining failures debugging | expand |
On Fri, 2018-11-16 at 09:30 +0100, Michal Hocko wrote: > From: Michal Hocko <mhocko@suse.com> > > This function is never called from a context which would provide > misaligned pfn range so drop the pointless check. > > Signed-off-by: Michal Hocko <mhocko@suse.com> I vaguely remember that someone reported a problem about misaligned range on powerpc. Not sure at which stage was (online/offline). Although I am not sure if that was valid at all. Reviewed-by: Oscar Salvador <osalvador@suse.de>
On Fri 16-11-18 11:34:03, Oscar Salvador wrote: > On Fri, 2018-11-16 at 09:30 +0100, Michal Hocko wrote: > > From: Michal Hocko <mhocko@suse.com> > > > > This function is never called from a context which would provide > > misaligned pfn range so drop the pointless check. > > > > Signed-off-by: Michal Hocko <mhocko@suse.com> > > I vaguely remember that someone reported a problem about misaligned > range on powerpc. > Not sure at which stage was (online/offline). > Although I am not sure if that was valid at all. If we are talking about the same thing then this was about partial memblock initialized (aka struct pages were not initialized). > Reviewed-by: Oscar Salvador <osalvador@suse.de> Thanks!
On 11/16/2018 02:00 PM, Michal Hocko wrote: > From: Michal Hocko <mhocko@suse.com> > > This function is never called from a context which would provide > misaligned pfn range so drop the pointless check. > > Signed-off-by: Michal Hocko <mhocko@suse.com> > --- > mm/memory_hotplug.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > index 2b2b3ccbbfb5..a92b1b8f6218 100644 > --- a/mm/memory_hotplug.c > +++ b/mm/memory_hotplug.c > @@ -1554,12 +1554,6 @@ static int __ref __offline_pages(unsigned long start_pfn, > struct zone *zone; > struct memory_notify arg; > > - /* at least, alignment against pageblock is necessary */ > - if (!IS_ALIGNED(start_pfn, pageblock_nr_pages)) > - return -EINVAL; > - if (!IS_ALIGNED(end_pfn, pageblock_nr_pages)) > - return -EINVAL; > - > mem_hotplug_begin(); > > /* This makes hotplug much easier...and readable. > Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 2b2b3ccbbfb5..a92b1b8f6218 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1554,12 +1554,6 @@ static int __ref __offline_pages(unsigned long start_pfn, struct zone *zone; struct memory_notify arg; - /* at least, alignment against pageblock is necessary */ - if (!IS_ALIGNED(start_pfn, pageblock_nr_pages)) - return -EINVAL; - if (!IS_ALIGNED(end_pfn, pageblock_nr_pages)) - return -EINVAL; - mem_hotplug_begin(); /* This makes hotplug much easier...and readable.