Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754079AbbFDBGA (ORCPT ); Wed, 3 Jun 2015 21:06:00 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:34115 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753131AbbFDBFx (ORCPT ); Wed, 3 Jun 2015 21:05:53 -0400 Date: Thu, 4 Jun 2015 10:05:47 +0900 From: Tejun Heo To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] workqueue: reuse the current per-node pwq when its attrs are unchanged Message-ID: <20150604010547.GK20091@mtj.duckdns.org> References: <1433341792-2017-1-git-send-email-laijs@cn.fujitsu.com> <1433341792-2017-3-git-send-email-laijs@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433341792-2017-3-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: 873 Lines: 24 On Wed, Jun 03, 2015 at 10:29:50PM +0800, Lai Jiangshan wrote: > If the cpumask is changed, it is possible that only a part of the per-node > pwq is affected. This can happen when the user changes the cpumask of > a workqueue or the low level cpumask. > > So we try to reuse the current per-node pwq when its attrs are unchanged. > > In wq_update_unbound_numa(), we had already made the current pwq be > reused when its attrs are unaffected, but we move the code of fetching > current pwq closer to the code of testing. > > Signed-off-by: Lai Jiangshan This one looks good to me. Thanks. -- 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/