The patch titled
CPU HOTPLUG: avoid hotadd when proper possible_map isn't specified
has been removed from the -mm tree. Its filename was
cpu-hotplug-avoid-hotadd-when-proper-possible_map-isnt-specified.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
Subject: CPU HOTPLUG: avoid hotadd when proper possible_map isn't specified
From: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]>
cpu-hot-add should be fail if cpu is not set in cpu_possible_map. If go
ahead, the system will panic soon.
Especially, arch which requires additional_cpus= parameter should handle
this. Tested on ia64.
[EMAIL PROTECTED]: coding-style fixes]
Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
kernel/cpu.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff -puN
kernel/cpu.c~cpu-hotplug-avoid-hotadd-when-proper-possible_map-isnt-specified
kernel/cpu.c
---
a/kernel/cpu.c~cpu-hotplug-avoid-hotadd-when-proper-possible_map-isnt-specified
+++ a/kernel/cpu.c
@@ -274,6 +274,15 @@ out_notify:
int __cpuinit cpu_up(unsigned int cpu)
{
int err = 0;
+ if (!cpu_isset(cpu, cpu_possible_map)) {
+ printk(KERN_ERR "can't online cpu %d because it is not "
+ "configured as may-hotadd at boot time\n", cpu);
+#if defined(CONFIG_IA64) || defined(CONFIG_X86_64) || defined(CONFIG_S390)
+ printk(KERN_ERR "please check additional_cpus= boot "
+ "parameter\n");
+#endif
+ return -EINVAL;
+ }
mutex_lock(&cpu_add_remove_lock);
if (cpu_hotplug_disabled)
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
origin.patch
cpu-hotplug-avoid-hotadd-when-proper-possible_map-isnt-specified.patch
git-sh.patch
memory-controller-make-charging-gfp-mask-aware-fix.patch
bugfix-for-memory-cgroup-controller-charge-refcnt-race-fix.patch
bugfix-for-memory-cgroup-controller-fix-error-handling-path-in-mem_charge_cgroup.patch
bugfix-for-memory-controller-add-helper-function-for-assigning-cgroup-to-page.patch
bugfix-for-memory-cgroup-controller-avoid-pagelru-page-in-mem_cgroup_isolate_pages.patch
bugfix-for-memory-cgroup-controller-migration-under-memory-controller-fix.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html