summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>2014-07-10 18:14:20 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-07-22 09:26:20 +0200
commitbd858e84d4a179c3030dccba56efb6a93e455c10 (patch)
treec42c36679a10a23b831349c5071ad3d8196c9b43 /arch/s390/kernel
parenta8fa3943500ca89076bab20f63565fbf8ad58257 (diff)
downloadop-kernel-dev-bd858e84d4a179c3030dccba56efb6a93e455c10.zip
op-kernel-dev-bd858e84d4a179c3030dccba56efb6a93e455c10.tar.gz
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>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 1e2264b..ae1d5be 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -501,6 +501,8 @@ static int kdump_mem_notifier(struct notifier_block *nb,
{
struct memory_notify *arg = data;
+ if (action != MEM_GOING_OFFLINE)
+ return NOTIFY_OK;
if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res)))
return NOTIFY_BAD;
if (arg->start_pfn > PFN_DOWN(crashk_res.end))
OpenPOWER on IntegriCloud