mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 18:36:31 +07:00
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: Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
a8fa394350
commit
bd858e84d4
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user