History

[PATCH] cpu hotplug: revert init patch submitted for 2.6.17

In 2.6.17, there was a problem with cpu_notifiers and XFS. I provided a band-aid solution to solve that problem. In the process, i undid all the changes you both were making to ensure that these notifiers were available only at init time (unless CONFIG_HOTPLUG_CPU is defined). We deferred the real fix to 2.6.18. Here is a set of patches that fixes the XFS problem cleanly and makes the cpu notifiers available only at init time (unless CONFIG_HOTPLUG_CPU is defined). If CONFIG_HOTPLUG_CPU is defined then cpu notifiers are available at run time. This patch reverts the notifier_call changes made in 2.6.17

Chandra Seetharaman committed 20 years ago

Commit 9c7b2161 parent 6ac12df18 files · +18 −18Browse files

Showing the changes to kernel/workqueue.c (1 of 18 files). Show all

Unified · Split

kernel/workqueue.c+1−1
@@ -559,7 +559,7 @@ static void take_over_work(struct workqueue_struct *wq, unsigned int cpu) · 558 unmodified lines
559}559}
560 560
561/* We're holding the cpucontrol mutex here */561/* We're holding the cpucontrol mutex here */
562static int workqueue_cpu_callback(struct notifier_block *nfb,562static int __devinit workqueue_cpu_callback(struct notifier_block *nfb,
563 unsigned long action,563 unsigned long action,
564 void *hcpu)564 void *hcpu)
565{565{