Skip to contentSkip to conversation

+ kernel-padatac-register-hotcpu-notifier-after-initialization.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Aug 26, 2013 Padata parallel execution mechanism

lore
Share & tools
lore
#0 lore raw

Subject: + kernel-padatac-register-hotcpu-notifier-after-initialization.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 26 Aug 2013 14:55:05 -0700

The patch titled
Subject: kernel/padata.c: register hotcpu notifier after initialization
has been added to the -mm tree. Its filename is
kernel-padatac-register-hotcpu-notifier-after-initialization.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/kernel-padatac-register-hotcpu-notifier-after-initialization.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/kernel-padatac-register-hotcpu-notifier-after-initialization.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Richard Weinberger <[email protected]>
Subject: kernel/padata.c: register hotcpu notifier after initialization

padata_cpu_callback() takes pinst->lock, to avoid taking an uninitialized lock, register the notifier after it's initialization.

---

 kernel/padata.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
kernel/padata.c renamed from kernel/padata.c~kernel-padatac-register-hotcpu-notifier-after-initialization +0 -5
diff -puN kernel/padata.c~kernel-padatac-register-hotcpu-notifier-after-initialization kernel/padata.c
@@ -1086,18 +1086,18 @@ struct padata_instance *padata_alloc(str
 
 	pinst->flags = 0;
 
-#ifdef CONFIG_HOTPLUG_CPU
-	pinst->cpu_notifier.notifier_call = padata_cpu_callback;
-	pinst->cpu_notifier.priority = 0;
-	register_hotcpu_notifier(&pinst->cpu_notifier);
-#endif