Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935340AbeAOOsW (ORCPT + 1 other); Mon, 15 Jan 2018 09:48:22 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:48206 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753419AbeAOOsT (ORCPT ); Mon, 15 Jan 2018 09:48:19 -0500 Date: Mon, 15 Jan 2018 15:48:19 +0100 From: Greg Kroah-Hartman To: NeilBrown Cc: Oleg Drokin , James Simmons , Andreas Dilger , Tejun Heo , lkml , lustre Subject: Re: [PATCH 1/2] staging: lustre: lnet: convert selftest to use workqueues Message-ID: <20180115144819.GA21012@kroah.com> References: <151564345630.21794.1667069238139184132.stgit@noble> <151564360053.21794.4058863911958997341.stgit@noble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <151564360053.21794.4058863911958997341.stgit@noble> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Jan 11, 2018 at 03:06:40PM +1100, NeilBrown wrote: > Instead of the cfs workitem library, use workqueues. > > As lnet wants to provide a cpu mask of allowed cpus, it > needs to be a WQ_UNBOUND work queue so that tasks can > run on cpus other than where they were submitted. > > This patch also exported apply_workqueue_attrs() which is > a documented part of the workqueue API, that isn't currently > exported. lustre needs it to allow workqueue thread to be limited > to a subset of CPUs. > > Acked-by: Tejun Heo (for export of apply_workqueue_attrs) > Signed-off-by: NeilBrown I now see the following build warning with this patch applied: drivers/staging/lustre/lnet/selftest/module.c: In function ‘lnet_selftest_init’: drivers/staging/lustre/lnet/selftest/module.c:98:10: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized] return rc; ^~ Care to send a follow-on patch to fix it up? thanks, greg k-h