From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753095AbbDFPWL (ORCPT ); Mon, 6 Apr 2015 11:22:11 -0400 Received: from mail-qc0-f180.google.com ([209.85.216.180]:36825 "EHLO mail-qc0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751264AbbDFPWI (ORCPT ); Mon, 6 Apr 2015 11:22:08 -0400 Date: Mon, 6 Apr 2015 11:22:04 -0400 From: Tejun Heo To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org, Frederic Weisbecker , Christoph Lameter , Kevin Hilman , Mike Galbraith , "Paul E. McKenney" , Viresh Kumar Subject: Re: [PATCH 1/4 V6] workqueue: Reorder sysfs code Message-ID: <20150406152204.GB10582@htj.duckdns.org> References: <1426653617-3240-1-git-send-email-laijs@cn.fujitsu.com> <1427973282-3052-1-git-send-email-laijs@cn.fujitsu.com> <1427973282-3052-2-git-send-email-laijs@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1427973282-3052-2-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 On Thu, Apr 02, 2015 at 07:14:39PM +0800, Lai Jiangshan wrote: > From: Frederic Weisbecker > > The sysfs code usually belongs to the botom of the file since it deals > with high level objects. In the workqueue code it's misplaced and such > that we'll need to work around functions references to allow the sysfs > code to call APIs like apply_workqueue_attrs(). > > Lets move that block further in the file, almost the botom. > > And declare workqueue_sysfs_unregister() just before destroy_workqueue() > which reference it. > > Suggested-by: Tejun Heo > Cc: Christoph Lameter > Cc: Kevin Hilman > Cc: Lai Jiangshan > Cc: Mike Galbraith > Cc: Paul E. McKenney > Cc: Tejun Heo > Cc: Viresh Kumar > Signed-off-by: Frederic Weisbecker > Signed-off-by: Lai Jiangshan Moved the forward declaration of workqueue_sysfs_unregister() where other forward declarations are and applied to wq/for-4.1. Thanks. -- tejun