Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936148AbcCQNsp (ORCPT ); Thu, 17 Mar 2016 09:48:45 -0400 Received: from mga02.intel.com ([134.134.136.20]:13595 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932983AbcCQNsn convert rfc822-to-8bit (ORCPT ); Thu, 17 Mar 2016 09:48:43 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,350,1455004800"; d="scan'208";a="939359551" From: "Grumbach, Emmanuel" To: Tejun Heo , Johannes Berg CC: Eva Rachel Retuya , "outreachy-kernel@googlegroups.com" , linuxwifi , "kvalo@codeaurora.org" , "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] iwlwifi: dvm: convert create_singlethread_workqueue() to alloc_workqueue() Thread-Topic: [PATCH] iwlwifi: dvm: convert create_singlethread_workqueue() to alloc_workqueue() Thread-Index: AQHRgEqXWoUtPjl8sU+butlH+LfA3Z9dfaEAgAApA6A= Date: Thu, 17 Mar 2016 13:48:36 +0000 Message-ID: <0BA3FCBA62E2DC44AF3030971E174FB32EA7CBB1@hasmsx107.ger.corp.intel.com> References: <1458218246-18807-1-git-send-email-eraretuya@gmail.com> <1458218602.2158.17.camel@sipsolutions.net> <20160317132110.GP21104@mtj.duckdns.org> In-Reply-To: <20160317132110.GP21104@mtj.duckdns.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTQ4YjQ5MGItYjk2ZS00NjQ2LThiODAtYWY4MTUxYjgyMTZjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InB5N1h6NVRxdnpcLzJDTVN1OGNpRGx2NWNYREFVQjl4NVM1Z09DMjJyVmxRPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.184.70.10] Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1180 Lines: 32 > Hello, > > On Thu, Mar 17, 2016 at 01:43:22PM +0100, Johannes Berg wrote: > > On Thu, 2016-03-17 at 20:37 +0800, Eva Rachel Retuya wrote: > > > Use alloc_workqueue() to allocate the workqueue instead of > > > create_singlethread_workqueue() since the latter is deprecated and > > > is scheduled for removal. > > > > Scheduled where? > > They've been deprecated for years now. I should note that in the header. > > > > ?static void iwl_setup_deferred_work(struct iwl_priv *priv) > > > ?{ > > > - priv->workqueue = create_singlethread_workqueue(DRV_NAME); > > > + priv->workqueue = alloc_workqueue(DRV_NAME, WQ_HIGHPRI | > > > WQ_UNBOUND | > > > + ??WQ_MEM_RECLAIM, 1); > > > > Seems like you should use?alloc_ordered_workqueue() though? That also > > gets you UNBOUND immediately, and the "1". > > Right, this one should have been alloc_ordered_workqueue(). > > > I'm not really sure HIGHPRI is needed either. > > So, no WQ_MEM_RECLAIM either then, I suppose? What are the latency > requirements here - what happens if a thermal management work gets > delayed? > This worker is not supposed to free memory, so no WQ_MEM_RECLAIM needed. The latency is not critical.