watchdog: NUMA affine kthreads
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.
Signed-off-by Eric Dumazet <[email protected]>
CC Don Zickus <[email protected]>
CC Peter Zijlstra <[email protected]>
Signed-off-by Don Zickus <[email protected]>
--- kernel/watchdog.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
kernel/watchdog.c +2 -1
@@ -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
[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.
Signed-off-by Eric Dumazet <[email protected]>
Signed-off-by Don Zickus <[email protected]>
Signed-off-by Peter Zijlstra <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/watchdog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/watchdog.c +1 -1
@@ -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) {