提交 770f36d3 编写于 作者: Y Yang Yingliang

Revert "mm/memory_hotplug: refrain from adding memory into an impossible node"

hulk inclusion
category: bugfix
bugzilla: 46857
CVE: NA

---------------------------

This reverts commit 023faff7.
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 aec38b36
...@@ -1058,11 +1058,6 @@ int __ref add_memory_resource(int nid, struct resource *res, bool online) ...@@ -1058,11 +1058,6 @@ int __ref add_memory_resource(int nid, struct resource *res, bool online)
if (ret) if (ret)
return ret; return ret;
if (!node_possible(nid)) {
WARN(1, "node %d was absent from the node_possible_map\n", nid);
return -EINVAL;
}
mem_hotplug_begin(); mem_hotplug_begin();
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册