From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753888AbbESKAO (ORCPT ); Tue, 19 May 2015 06:00:14 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:15665 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753327AbbESKAL (ORCPT ); Tue, 19 May 2015 06:00:11 -0400 X-IronPort-AV: E=Sophos;i="5.01,1,1399996800"; d="scan'208";a="92458503" From: Lai Jiangshan To: CC: Lai Jiangshan , Tejun Heo Subject: [PATCH 0/2 V2] workqueue: refactor and extend the lock for attrs changes Date: Tue, 19 May 2015 18:03:46 +0800 Message-ID: <1432029828-3386-1-git-send-email-laijs@cn.fujitsu.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.103] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Current modification to attrs via sysfs is not fully synchronized. So this patch separates out and refactors the locking and ensures attrs changes are properly synchronized. changed from v1 just split the patch Cc: Tejun Heo Lai Jiangshan (2): workqueue: separate out and refactor the locking of applying attrs workqueue: ensure attrs changes are properly synchronized kernel/workqueue.c | 112 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 70 insertions(+), 42 deletions(-) -- 2.1.0