Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751380AbbD3N3p (ORCPT ); Thu, 30 Apr 2015 09:29:45 -0400 Received: from mail-vn0-f52.google.com ([209.85.216.52]:33936 "EHLO mail-vn0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbbD3N3n (ORCPT ); Thu, 30 Apr 2015 09:29:43 -0400 Date: Thu, 30 Apr 2015 09:29:39 -0400 From: Tejun Heo To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org, Christoph Lameter , Kevin Hilman , Mike Galbraith , "Paul E. McKenney" , Viresh Kumar , Frederic Weisbecker Subject: Re: [PATCH V9] workqueue: Allow modifying low level unbound workqueue cpumask Message-ID: <20150430132939.GA1949@htj.duckdns.org> References: <1430385372-3351-1-git-send-email-laijs@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1430385372-3351-1-git-send-email-laijs@cn.fujitsu.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2188 Lines: 52 On Thu, Apr 30, 2015 at 05:16:12PM +0800, Lai Jiangshan wrote: > Allow to modify the low-level unbound workqueues cpumask through > sysfs. This is performed by traversing the entire workqueue list > and calling apply_wqattrs_prepare() on the unbound workqueues > with the new low level mask. Only after all the preparation are done, > we commit them all together. > > Ordered workqueues are ignored from the low level unbound workqueue > cpumask, it will be handled in near future. > > All the (default & per-node) pwqs are mandatorily controlled by > the low level cpumask. If the user configured cpumask doesn't overlap > with the low level cpumask, the low level cpumask will be used for the > wq instead. > > The comment of wq_calc_node_cpumask() is updated and explicitly > requires that its first argument should be the attrs of the default > pwq. > > The default wq_unbound_cpumask is cpu_possible_mask. The workqueue > subsystem doesn't know its best default value, let the system manager > or the other subsystem set it when needed. > > Changed from V8: > merge the calculating code for the attrs of the default pwq together. > minor change the code&comments for saving the user configured attrs. > remove unnecessary list_del(). > minor update the comment of wq_calc_node_cpumask(). > update the comment of workqueue_set_unbound_cpumask(); > > Cc: Christoph Lameter > Cc: Kevin Hilman > Cc: Lai Jiangshan > Cc: Mike Galbraith > Cc: Paul E. McKenney > Cc: Tejun Heo > Cc: Viresh Kumar > Cc: Frederic Weisbecker > Original-patch-by: Frederic Weisbecker > Signed-off-by: Lai Jiangshan Applied to wq/for-4.2 and yeah the prepare function looks better now. Thanks a lot for the persistence. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/