“41a1d91e7e7b08a13d78e03e67dcd7634f2d5cca”上不存在“arch/arm/git@gitcode.net:openeuler/raspberrypi-kernel.git”
提交 bd858e84 编写于 作者: M Michael Holzheu 提交者: Martin Schwidefsky

s390/kdump: Return NOTIFY_OK for all actions other than MEM_GOING_OFFLINE

We only have to check kdump memory for the MEM_GOING_OFFLINE action.
Therefore skip the test and return NOTIFY_OK for all other memory
hotplug actions.
Signed-off-by: NMichael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 a8fa3943
...@@ -501,6 +501,8 @@ static int kdump_mem_notifier(struct notifier_block *nb, ...@@ -501,6 +501,8 @@ static int kdump_mem_notifier(struct notifier_block *nb,
{ {
struct memory_notify *arg = data; struct memory_notify *arg = data;
if (action != MEM_GOING_OFFLINE)
return NOTIFY_OK;
if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res))) if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res)))
return NOTIFY_BAD; return NOTIFY_BAD;
if (arg->start_pfn > PFN_DOWN(crashk_res.end)) if (arg->start_pfn > PFN_DOWN(crashk_res.end))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册