• Lai Jiangshan's avatar
    memory_hotplug: ensure every online node has NORMAL memory · 74d42d8f
    Lai Jiangshan authored
    Old memory hotplug code and new online/movable may cause a online node
    don't have any normal memory, but memory-management acts bad when we have
    nodes which is online but don't have any normal memory.  Example: it may
    cause a bound task fail on all kernel allocation and cause the task can't
    create task or create other kernel object.
    
    So we disable non-normal-memory-node here, we will enable it when we
    prepared.
    Signed-off-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
    Signed-off-by: default avatarWen Congyang <wency@cn.fujitsu.com>
    Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
    Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
    Cc: Jiang Liu <jiang.liu@huawei.com>
    Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Cc: Minchan Kim <minchan.kim@gmail.com>
    Cc: Mel Gorman <mgorman@suse.de>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Greg KH <greg@kroah.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    74d42d8f
memory_hotplug.c 33.2 KB