Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753430AbbDTDSW (ORCPT ); Sun, 19 Apr 2015 23:18:22 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:13462 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751986AbbDTDSU (ORCPT ); Sun, 19 Apr 2015 23:18:20 -0400 X-IronPort-AV: E=Sophos;i="5.04,848,1406563200"; d="scan'208";a="90916450" Message-ID: <553470B7.7040805@cn.fujitsu.com> Date: Mon, 20 Apr 2015 11:21:27 +0800 From: Lai Jiangshan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Tejun Heo CC: , Christoph Lameter , Kevin Hilman , Mike Galbraith , "Paul E. McKenney" , Viresh Kumar , Frederic Weisbecker Subject: Re: [PATCH 1/3 V7] workqueue: split apply_workqueue_attrs() into 3 stages References: <1427973282-3052-1-git-send-email-laijs@cn.fujitsu.com> <1428405998-3102-1-git-send-email-laijs@cn.fujitsu.com> <20150417145724.GE1954@htj.duckdns.org> In-Reply-To: <20150417145724.GE1954@htj.duckdns.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.103] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1387 Lines: 49 On 04/17/2015 10:57 PM, Tejun Heo wrote: > On Tue, Apr 07, 2015 at 07:26:35PM +0800, Lai Jiangshan wrote: >> Current apply_workqueue_attrs() includes pwqs-allocation and pwqs-installation, >> so when we batch multiple apply_workqueue_attrs()s as a transaction, we can't >> ensure the transaction must succeed or fail as a complete unit. > > Lai, can you please > > * Break out threads when posting new version. > > * List the changes since the last version? My bad. I thought you had only two comments which ware handled in v7. It was considered (with my laziness) too less to be renarrated. --- In [2/4 V6]: ```quote from TJ: And we're dropping online_cpus locking before applying the new pwq's. Is that safe? ``` It was my fault, I didn't remember when I wrongly moved the code. The patch had been tried my best keep functionality unchanged. It is fixed in [1/3 V7]. ---- The changes from [4/4 V6] to [3/3 V7]: ctx->attrs (the original configured value) is not calculated until it is saved into ctx->attrs, and a corresponding local-var is killed. Could you please consider it as [0/3 V7] this time? Thx Lai. > > Thanks. > -- 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/