From patchwork Tue Jun 7 20:08:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhaktipriya Shridhar X-Patchwork-Id: 9162447 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7081960573 for ; Tue, 7 Jun 2016 20:09:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 636D92834F for ; Tue, 7 Jun 2016 20:09:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 582EA2835A; Tue, 7 Jun 2016 20:09:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 075772834F for ; Tue, 7 Jun 2016 20:09:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422914AbcFGUJV (ORCPT ); Tue, 7 Jun 2016 16:09:21 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:32791 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162046AbcFGUJB (ORCPT ); Tue, 7 Jun 2016 16:09:01 -0400 Received: by mail-pa0-f68.google.com with SMTP id di3so14850827pab.0; Tue, 07 Jun 2016 13:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=IB8sI0Q8aBz7w/9KSsABjfNEmaYYb3LNU+2F6i+nhHI=; b=GHpJaTOFfgccSsJS9r2SGYap2r64HLHD6OyZqsxmZ02YNPowx0zSYFGCQK7mORzH0v Lq46ojhRK4g1FTAlW7PgotOtBQYn+O129MSP1veHEA9Ou7j8WqFMLoKS6YQS5Y91TA0W ggmGY/KMMkZiscX6pqfJsKslRxrAJZkecYhr3oDxdk9XJKCDTvBbBr9lj5gsENOXf0gM Fx2+dpeTp4NDNi95G1X1vE7iiOpLw7BiIlLRAuYGMvhzWmmfoxaaa6xyiZanT3dgDz1w E57n+UiGORao//+/6UdtcYCBr/dTkTfKRGlJQZRhH7wQLQ9qZ91SpcoYODt0VkCpCNwR 1CRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=IB8sI0Q8aBz7w/9KSsABjfNEmaYYb3LNU+2F6i+nhHI=; b=VNk4+WCB5G+HYlEyY5jT0ArRyt4m/6UE5V0aGWCBfobSBa49ypAz2vcIoM1MzvD+Hb +BmIwViTjJcTLDMOhtwRz7Jx03uMP6XrV2mrAal1T9qfCDqcXKGV3S3OWZ/cpnDGQNZE gEm2veM50BTa+Ln1qJGF/N+K69iq8sgjEdncAL8nDl9aYn/L5pkiH0XOxsRfJ2EA1zkI DElKz557exuHcAfHyCX2pE7oXcSaTmoy4h++xYRGRwaIvrYu9tVw0uQIIM8ZQszsYUpz g4JElL0XU28MINPsRXvXOLYpaFxi4xQony58Qb9spPa/Z73JlDFsnR35u/3y/p5O3qKP p2IA== X-Gm-Message-State: ALyK8tKwqMx3s0juB2qydcsXlv/0gsH1q9j5r0Fg+1cfbPxW+XoDsRYUo9hgIs7Fn9mGow== X-Received: by 10.66.62.196 with SMTP id a4mr1208243pas.25.1465330140202; Tue, 07 Jun 2016 13:09:00 -0700 (PDT) Received: from Karyakshetra ([1.23.6.72]) by smtp.gmail.com with ESMTPSA id i65sm37138801pfk.84.2016.06.07.13.08.58 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Jun 2016 13:08:59 -0700 (PDT) Date: Wed, 8 Jun 2016 01:38:53 +0530 From: Bhaktipriya Shridhar To: Kalle Valo , Johannes Berg Cc: Tejun Heo , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] libertas_tf: Remove create_workqueue Message-ID: <20160607200853.GA13742@Karyakshetra> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP alloc_workqueue replaces deprecated create_workqueue(). A dedicated workqueue has been used since the workitem (viz &priv->cmd_work per priv, which maps to lbtf_cmd_work) is involved in actual command processing and may be used on a memory reclaim path. The workitems require forward progress under memory pressure and hence, WQ_MEM_RECLAIM has been set. Since there are only a fixed number of work items, explicit concurrency limit is unnecessary here. Signed-off-by: Bhaktipriya Shridhar Acked-by: Tejun Heo --- drivers/net/wireless/marvell/libertas_tf/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/marvell/libertas_tf/main.c b/drivers/net/wireless/marvell/libertas_tf/main.c index 0bf8916..81463f7 100644 --- a/drivers/net/wireless/marvell/libertas_tf/main.c +++ b/drivers/net/wireless/marvell/libertas_tf/main.c @@ -742,7 +742,7 @@ EXPORT_SYMBOL_GPL(lbtf_bcn_sent); static int __init lbtf_init_module(void) { lbtf_deb_enter(LBTF_DEB_MAIN); - lbtf_wq = create_workqueue("libertastf"); + lbtf_wq = alloc_workqueue("libertastf", WQ_MEM_RECLAIM, 0); if (lbtf_wq == NULL) { printk(KERN_ERR "libertastf: couldn't create workqueue\n"); return -ENOMEM;