From patchwork Tue Aug 15 17:08:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dupuis, Chad" X-Patchwork-Id: 9902221 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 6E2A060230 for ; Tue, 15 Aug 2017 17:09:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5904E27F85 for ; Tue, 15 Aug 2017 17:09:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D7B62855A; Tue, 15 Aug 2017 17:09:14 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI 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 C69A927F85 for ; Tue, 15 Aug 2017 17:09:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752431AbdHORJL (ORCPT ); Tue, 15 Aug 2017 13:09:11 -0400 Received: from mail-sn1nam01on0080.outbound.protection.outlook.com ([104.47.32.80]:59820 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752547AbdHORJJ (ORCPT ); Tue, 15 Aug 2017 13:09:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EZznWJb8eVKMVXzOTvjE0TajkTKv8cV2uBo8PI7aOWM=; b=QkSYj6DLGQU6GgF1WsvBqEat6JuVTbCra/mOSnK4q2fPtVgcwpei/86P4DlK8ioGXm0fzNqDZnYcntv/GR68oYWErIZbWJ5ymf8CdJzFZEelKfSRvq81WaZB5P86ivq7MF1ciSQ3W81Y1sAwOm1eyglVbHLVKpAdfMe0CKg/PFE= Received: from BY2PR07CA0082.namprd07.prod.outlook.com (10.166.107.35) by CY4PR07MB3446.namprd07.prod.outlook.com (10.171.252.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.14; Tue, 15 Aug 2017 17:09:06 +0000 Received: from BN1AFFO11FD017.protection.gbl (2a01:111:f400:7c10::184) by BY2PR07CA0082.outlook.office365.com (2a01:111:e400:7bff::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22 via Frontend Transport; Tue, 15 Aug 2017 17:09:06 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; oracle.com; dkim=none (message not signed) header.d=none; oracle.com; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD017.mail.protection.outlook.com (10.58.52.77) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1304.16 via Frontend Transport; Tue, 15 Aug 2017 17:09:04 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Tue, 15 Aug 2017 10:08:22 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id v7FH8Mdl020857; Tue, 15 Aug 2017 10:08:22 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v7FH8Mfs020856; Tue, 15 Aug 2017 10:08:22 -0700 From: Chad Dupuis To: CC: , , Subject: [PATCH 4/6] qedf: Covert single-threaded workqueues to regular workqueues. Date: Tue, 15 Aug 2017 10:08:19 -0700 Message-ID: <20170815170821.20806-5-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170815170821.20806-1-chad.dupuis@cavium.com> References: <20170815170821.20806-1-chad.dupuis@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(428002)(199003)(189002)(305945005)(8676002)(5660300001)(6666003)(6916009)(50226002)(356003)(101416001)(86362001)(87636003)(4326008)(8936002)(110136004)(107886003)(72206003)(47776003)(1076002)(2950100002)(478600001)(81156014)(81166006)(2906002)(33646002)(69596002)(105586002)(626005)(36756003)(54906002)(76176999)(106466001)(80596001)(189998001)(50986999)(48376002)(50466002)(2351001)(5003940100001)(42186005); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3446; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD017; 1:Xicqy/j9qOc5gQIPt4DFVe7OuEfcO5qT+VnYny7g+OwnuYQ0JaztFx9VAooT0rcsMYs1Leh+B69KfQSTuT077OPQHz/QWiDMm/IrIDeHa7BnGerSdI2JCDgpJ1YZPPvAUP0Giudn3ZTX/FTlNN1/XPrmtdvVEATyqd6um6+uSday6AfaZdYQEAOyuUxKkX/Ip9czrGjRswbW6h/Awv//XZ04rC/DhfZi+Iujz0UmQrj+IK/x7lx1i2vK6hBbQbCKesTEKFdvQJAHJn5xqmcblPZ1+vMi8yuN7s5uHMZHaVNavTrZUDw6VsbhRz26DOoC2fIQyeZR2KIZ2SgOF8KoMP91336vEl45fqARBmzAnI++IBh0lBut1zQvEa9EtxgAkGzU5Gk8pSWNpCcPfUj9lAgKjN/Lva/wSpsTiOKxq+VXGoDI3F4CYvtlDtVCYMhEBiBId7KKHL/lIRB4a4Cy7gc1al/T9FbbdX6hK9c3Wrb9HesaGAdaXk51OOHGwJ2nzM5tgnNnIi0K9qB9XOcZTo0afCziUavlGG7Kqa8hCwq/VUNmB+A+eFCoQNpmmKrK7ixQB0FMot8gC/J3KoY65b5SrTX8ixpfbfBzAw+y4o9AYbaaeYPybDDb5o9Xj4Xw1wHExVFWhtkdo5Q7P+Wkccne8eY5VngWrT/hT6lvcF9EfqQMgRB1oNhn+VX6AZw+EeIUwU5T8UdP32WHjJnrub1+AEECTO/oUgcRVCtZ/NxRu1515enZNe0UhU/VHyMlMAz/WOqXgNsTSDkM2PohW4nAAy/3jON3XlGgXBHeVWs= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 336f620f-7fe0-4ab2-66ff-08d4e40055dc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3446; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3446; 3:nEZVsR6CsR7noEIeBLqAJdN9XY0An5eQtMiFg+H7/ewf/ml2N/5oe3g2HVplJgJy9yVZnRe8OMmK+G2HjxWzSH695YmfvkO0/9DGscqzdi5+P71xhEB8zN4fyMB/AviXPUUSVbCOUW6gOQpGuAtD3CK/M7CXkhKLus7kAWkJp8oN1z4IaRvxASwf6vkdhYNy2C3JGQahaJxoTtIF7KYYlo3oQloSKegSrODpQ2mmy97q11bLcdwBbC2Cjep7wZstxNTqrbtzJxuCQqSou7t+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Ym5W6ul8cs4kp/g9LDKNf6iRU8OeTUUhHuOT1tfClldSQNcIxX11obYUXa030jPUqdYmJZE+4he/1F1NPWcyUdSwOj5T0bkf7n1VVIGoN9HGfgBC4f+rDyqdhz9bS4q7wDhw/uw7vSupPziK3LckhfulgxT57YyCNritW4; 4:Fpi00WUyKLgv7Ytmvv82GH0MoozC+uwz8NDMMATjzkoVGL3ugLzJmisPj3dbtfafU4lNTUAFoB2b6PS87stR2/fMrj1M3MGEdyXOH126sE166n4Uy03qsOPH4ggjYuV6xn5z7zyscpUIHoJGzhQNll0CfFgKO+Ts+490oH31H0JIgxOHuOART6l1XAhHc+0fWbRr9m/PoywTiDyS1gB3ko47bb/IJiZGD67zg8DfYPzSZ3ALRFvaYwe7sNkrV32d X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6041248)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3446; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3446; X-Forefront-PRVS: 04004D94E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3446; 23:Oyg43LNy3I+nCUaBFM3fPHdSpFlRkLBcS4MAKTQ68?= =?us-ascii?Q?Fa08B812Ni2CB+TvLq43AOmLoiFrMK1/3qCg5GXey3hhO+QTZzNXYLwctyl9?= =?us-ascii?Q?l8EtunuQdyhnES22tLfpXEfMyhBVaKSpI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aeM/Fil2QJ5OYzmaodX8rEn0bk61F6Ww=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3446; 6:hfBlnj+bcH6q+weXsy05lZED5+M7hA1uvqH3eMjgDItS4q9XTR6X7+MDQ8tvtQZX59SignbE/Kq+UWx6JCDX/EyNJJOIX4IqAje10PHirwGvhzxnMwUUSVKoIiW5vZ6xvyu4PbkYu6tPS3iHpUySWli0EIDLoXbqDFn1EAzruAWuIdARdwPDQtZS4zdpcY95KGCv5uJ4DMJ2qVeqBwU6OhCdkxcIYncYF2CDjdZA6CtMmGPD9oapWpm6UeYNFpRH2le99VR4TAFFUHltq+YUPBZC4aVdxvuuCY1Gu3OwQP+1st8pAxa84T6p8Hp9NKgFEepZ9770P3jCjK2HC2nisA==; 5:mdWOeOIVip+tBVYINvVLz0ZKvq78ovOGpQHdLs2dUG7mt1KqvlEFyP6H8dbB98n6LnsGRMCd6XnO4bzTBaNsxVrZR54mlzX4hKepm3QSDnKir7ke01BjWsZcWCSz+0E6+yw2D9NEL0JPC711sJmtiAkFYAtCBZq/xz+7RVYt2t0=; 24:gRD6uLqCSmuE6u65IYwSYMPsI4/W6jgXq1Cs+YQTr9mfFgdmKld5WWCq8bvfmet89uVRnYZb5BFjiCeFE4JkPRmOmc+K+CDYB+AEncPjZsI=; 7:2h7+R7ri+ewChoPcT9jNw2+BvlU45mdRyn7WVTOqkmHOcmrsoTgOVML95Z8KClsTt5JEc/bITOMjGLYscHgKj59j8c04iFPsKBrMmttf05uzYljPbko3f3DVqmLs7lM+Wn+pIWY/A4JdoMJVQsqoL6lHMWI7aq+ZgHiafim6h7YzFQTWU2d2FfUtm21+gOQvAQ0jlpIuzj/K+BoNJfxPdoZ27KME7g3FXwR0w1YWvGw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2017 17:09:04.6335 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3446 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is no ordering required for the various workqueues the driver uses so they can be converted to regular workqueues. Signed-off-by: Chad Dupuis --- drivers/scsi/qedf/qedf_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 0520dd1be749..24e8d2ab099c 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -2987,7 +2987,7 @@ static int __qedf_probe(struct pci_dev *pdev, int mode) sprintf(host_buf, "qedf_%u_link", qedf->lport->host->host_no); - qedf->link_update_wq = create_singlethread_workqueue(host_buf); + qedf->link_update_wq = create_workqueue(host_buf); INIT_DELAYED_WORK(&qedf->link_update, qedf_handle_link_update); INIT_DELAYED_WORK(&qedf->link_recovery, qedf_link_recovery); @@ -3157,7 +3157,7 @@ static int __qedf_probe(struct pci_dev *pdev, int mode) /* Start LL2 processing thread */ snprintf(host_buf, 20, "qedf_%d_ll2", host->host_no); qedf->ll2_recv_wq = - create_singlethread_workqueue(host_buf); + create_workqueue(host_buf); if (!qedf->ll2_recv_wq) { QEDF_ERR(&(qedf->dbg_ctx), "Failed to LL2 workqueue.\n"); goto err7; @@ -3199,7 +3199,7 @@ static int __qedf_probe(struct pci_dev *pdev, int mode) sprintf(host_buf, "qedf_%u_timer", qedf->lport->host->host_no); qedf->timer_work_queue = - create_singlethread_workqueue(host_buf); + create_workqueue(host_buf); if (!qedf->timer_work_queue) { QEDF_ERR(&(qedf->dbg_ctx), "Failed to start timer " "workqueue.\n"); @@ -3210,7 +3210,7 @@ static int __qedf_probe(struct pci_dev *pdev, int mode) if (mode != QEDF_MODE_RECOVERY) { sprintf(host_buf, "qedf_%u_dpc", qedf->lport->host->host_no); - qedf->dpc_wq = create_singlethread_workqueue(host_buf); + qedf->dpc_wq = create_workqueue(host_buf); } /*