Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1717961 > unrolled thread

[RFC PATCH 09/12] workqueue: Affine unbound workqueues to housekeeping cpumask

Started byFrederic Weisbecker <fweisbec@gmail.com>
First post2017-08-23 04:00 +0200
Last post2017-08-23 04:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [RFC PATCH 09/12] workqueue: Affine unbound workqueues to housekeeping cpumask Frederic Weisbecker <fweisbec@gmail.com> - 2017-08-23 04:00 +0200

#1717961 — [RFC PATCH 09/12] workqueue: Affine unbound workqueues to housekeeping cpumask

FromFrederic Weisbecker <fweisbec@gmail.com>
Date2017-08-23 04:00 +0200
Subject[RFC PATCH 09/12] workqueue: Affine unbound workqueues to housekeeping cpumask
Message-ID<uht7z-2oU-1@gated-at.bofh.it>
Although the unbound workqueue cpumask can be overriden through sysfs,
we also want to affine the workqueues when isolcpus= will be
reimplemented on top of housekeeping.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Wanpeng Li <kernellwp@gmail.com>
Cc: Luiz Capitulino <lcapitulino@redhat.com>
---
 include/linux/housekeeping.h | 1 +
 kernel/workqueue.c           | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/linux/housekeeping.h b/include/linux/housekeeping.h
index b1a62544..0959601 100644
--- a/include/linux/housekeeping.h
+++ b/include/linux/housekeeping.h
@@ -10,6 +10,7 @@ enum hk_flags {
 	HK_FLAG_RCU		= (1 << 1),
 	HK_FLAG_MISC		= (1 << 2),
 	HK_FLAG_SCHED		= (1 << 3),
+	HK_FLAG_WORKQUEUE	= (1 << 4),
 };
 
 #ifdef CONFIG_CPU_ISOLATION
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index ca937b0..256e3cb 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -48,6 +48,7 @@
 #include <linux/nodemask.h>
 #include <linux/moduleparam.h>
 #include <linux/uaccess.h>
+#include <linux/housekeeping.h>
 
 #include "workqueue_internal.h"
 
@@ -5546,7 +5547,7 @@ int __init workqueue_init_early(void)
 	WARN_ON(__alignof__(struct pool_workqueue) < __alignof__(long long));
 
 	BUG_ON(!alloc_cpumask_var(&wq_unbound_cpumask, GFP_KERNEL));
-	cpumask_copy(wq_unbound_cpumask, cpu_possible_mask);
+	cpumask_copy(wq_unbound_cpumask, housekeeping_cpumask(HK_FLAG_WORKQUEUE));
 
 	pwq_cache = KMEM_CACHE(pool_workqueue, SLAB_PANIC);
 
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web