Received: by 10.223.176.5 with SMTP id f5csp199179wra; Fri, 26 Jan 2018 21:11:54 -0800 (PST) X-Google-Smtp-Source: AH8x226O6WqAs1tSYGVYI3b7ULOH6YG3rl7jr3Q+jCcBErZszxALbgDmVUmbBvJW1llKBgUWNZn2 X-Received: by 10.98.201.69 with SMTP id k66mr21100325pfg.105.1517029914549; Fri, 26 Jan 2018 21:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517029914; cv=none; d=google.com; s=arc-20160816; b=kbCsTr3FJsp4eDm2hm1oeUQSIpHOGyZNSwckp9mN86Vjwgm14cdwtkSIapLCC0gU6O AnDluAzmQCF066EybtpzMWvJgvVB/10/drYVee+dvplRfU3Q+0e747u4Gg/u9my1x0At H+zfLI/huZBuTOAYdpHii2w7UzqfEHiCPHDZP4pY7fpD6DflP0jrsAlNx24vqE0knYga O38pVoaW7lO6Vv3jgWuwPUTtgoru3VDClEn8G8dq9FYizC/DebELqUGQUO9odmj00D2W CFAGaE6oJ+x6/1q8cIoPsEDW8AG1+cCOdgTe9hChL3kI6hBVc/Rdaatpq2KyxeMZkcZA csYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=8Q2rNDqYpaMyoAmw8s4ACS7d4iaG4ysKpGcRWX2AXi4=; b=hsahHCzGQcr0Z1OYR7PrT1VioloANiJHbmQrZh2y/Qz9Nk8nDbWteZUMojvKjfzw5a 2rSRMOc17tDFLg/z+AQyEDLNN0JCsuKzvxxCAuLm6pH7UR1KODIEGD4H2r3QquPeN1yT /VlMlJtXQc80v9C3HW+ivQK+od6g9uUKmVRvcE0UjiGief7GrRx5eRFGaQohc7X1/IZJ ty1b0o4AkPKOHDP51HIa0f7i5shZelnAP9yOhIgXu6si06qx6RJNQODKusqOz66jIoDA n8S4hWCqsfirx5/jmiWF3k3fVNVo4+pxaoi1DRAhNqud8CpQGcQink5OAU4zNcGDTS5D ubCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r83si7496289pfd.355.2018.01.26.21.11.40; Fri, 26 Jan 2018 21:11:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751572AbeA0FKf (ORCPT + 99 others); Sat, 27 Jan 2018 00:10:35 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:43428 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751008AbeA0FKe (ORCPT ); Sat, 27 Jan 2018 00:10:34 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id D3B5EA63DA30275EC294; Sat, 27 Jan 2018 13:10:30 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id w0R59ttf092778; Sat, 27 Jan 2018 13:09:55 +0800 (GMT-8) (envelope-from wen.yang99@zte.com.cn) Received: from localhost.localdomain ([10.75.9.60]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018012713100579-2795348 ; Sat, 27 Jan 2018 13:10:05 +0800 From: Wen Yang To: tj@kernel.org Cc: zhong.weidong@zte.com.cn, wen.yang99@zte.com.cn, Jiang Biao , Tan Hu , Lai Jiangshan , kernel test robot , linux-kernel@vger.kernel.org Subject: [RFC PATCH V5 2/5] workqueue: expose attrs for system workqueues Date: Sat, 27 Jan 2018 13:15:24 +0800 Message-Id: <1517030127-21391-2-git-send-email-wen.yang99@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1517030127-21391-1-git-send-email-wen.yang99@zte.com.cn> References: <1517030127-21391-1-git-send-email-wen.yang99@zte.com.cn> X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-01-27 13:10:05, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-01-27 13:09:36, Serialize complete at 2018-01-27 13:09:36 X-MAIL: mse01.zte.com.cn w0R59ttf092778 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Wen Yang Signed-off-by: Jiang Biao Signed-off-by: Tan Hu Suggested-by: Tejun Heo Cc: Tejun Heo Cc: Lai Jiangshan Cc: kernel test robot Cc: linux-kernel@vger.kernel.org --- kernel/workqueue.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 67b68bb..d5a5c76 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -5254,7 +5254,11 @@ static int __init wq_sysfs_init(void) if (err) return err; - return device_create_file(wq_subsys.dev_root, &wq_sysfs_cpumask_attr); + err = device_create_file(wq_subsys.dev_root, &wq_sysfs_cpumask_attr); + if (err) + return err; + return workqueue_sysfs_register(system_wq) || + workqueue_sysfs_register(system_highpri_wq); } core_initcall(wq_sysfs_init); -- 1.8.3.1