Skip to content

Commit bd858e8

Browse files
Michael HolzheuMartin Schwidefsky
authored andcommitted
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>
1 parent a8fa394 commit bd858e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/s390/kernel/setup.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,8 @@ static int kdump_mem_notifier(struct notifier_block *nb,
501501
{
502502
struct memory_notify *arg = data;
503503

504+
if (action != MEM_GOING_OFFLINE)
505+
return NOTIFY_OK;
504506
if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res)))
505507
return NOTIFY_BAD;
506508
if (arg->start_pfn > PFN_DOWN(crashk_res.end))

0 commit comments

Comments
 (0)