[PATCH V2 1/3] mm/hotplug: Prevalidate the address range being added with platform

Oscar Salvador osalvador at suse.de
Mon Jan 11 08:43:08 EST 2021


On Mon, Jan 11, 2021 at 11:51:47AM +0100, David Hildenbrand wrote:
> AFAIKs, all memhp_get_pluggable_range() users pass "1".
> 
> What about the "add_pages()-only" path?

I guess you refer to memremap_pages(), right?
If so, moving the added memhp_range_allowed() check above the if-else might do
the trick

-- 
Oscar Salvador
SUSE L3



More information about the linux-arm-kernel mailing list