Skip to contentSkip to conversation

watchdog: NUMA affine kthreads

PATCH In review Don Zickus 2 participants 2 messages Aug 3, 2011 – Aug 14, 2011

lore
Share & tools
lore

Don Zickus

author
#0 lore raw

PATCH 1/1 watchdog: NUMA affine kthreads

From: Eric Dumazet <[email protected]>

watchdog kthreads can use kthread_create_on_node() to NUMA affine their stack and task_struct.

---
 kernel/watchdog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
kernel/watchdog.c +2 -1
index 36491cd..14cabcd 100644
@@ -438,7 +438,8 @@ static int watchdog_enable(int cpu)
 
 	/* create the watchdog thread */
 	if (!p) {
-		p = kthread_create(watchdog, (void *)(unsigned long)cpu, "watchdog/%d", cpu);
+		p = kthread_create_on_node(watchdog, NULL, cpu_to_node(cpu),
+					   "watchdog/%d", cpu);
 		if (IS_ERR(p)) {
 			printk(KERN_ERR "softlockup watchdog for %i failed\n", cpu);
 			if (!err) {
Signature · 1 line
1.7.6
#1 lore raw

[tip:perf/core] watchdog: Make the kthreads NUMA affine

Commit-ID:  18e5a45db30e0e338cdd663eda05a8288cc14fa5
Gitweb:     http://git.kernel.org/tip/18e5a45db30e0e338cdd663eda05a8288cc14fa5
Author:     Eric Dumazet <[email protected]>
AuthorDate: Wed, 3 Aug 2011 13:59:04 -0400
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sun, 14 Aug 2011 11:53:06 +0200

watchdog: Make the kthreads NUMA affine

Watchdog kthreads can use kthread_create_on_node() to NUMA affine their stack and task_struct.

---
 kernel/watchdog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/watchdog.c +1 -1
index 36491cd..e952a13 100644
@@ -438,7 +438,7 @@ static int watchdog_enable(int cpu)
 
 	/* create the watchdog thread */
 	if (!p) {
-		p = kthread_create(watchdog, (void *)(unsigned long)cpu, "watchdog/%d", cpu);
+		p = kthread_create_on_node(watchdog, NULL, cpu_to_node(cpu), "watchdog/%d", cpu);
 		if (IS_ERR(p)) {
 			printk(KERN_ERR "softlockup watchdog for %i failed\n", cpu);
 			if (!err) {