Message ID | 20171204224517.3409-4-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 573AD600C5 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 4 Dec 2017 22:45:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 490BA29387 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 4 Dec 2017 22:45:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DAF229446; Mon, 4 Dec 2017 22:45:40 +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 C8E8429387 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 4 Dec 2017 22:45:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752370AbdLDWph (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Mon, 4 Dec 2017 17:45:37 -0500 Received: from mail-dm3nam03on0078.outbound.protection.outlook.com ([104.47.41.78]:50400 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752155AbdLDWpb (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Mon, 4 Dec 2017 17:45:31 -0500 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=kfcthCQ+PiJBp0CJKRBoK8/iz0Lg6V0uqT/5GRjNmUw=; b=g7rZPxFO6ythFIUr31rQSTM17+ccE55TmyPqgYi2GXgGrVuZvoyhiQBtQOhPH6d/DQ4+SHd7umlgMeFFKcQAveMMrYk0Lv766ZTKCJ+gVpI2PIJx5ROeLpWRhAXQDQEZA5BmRJSAYgaPi+zv5xdJFeTknLVaGiXNz6c4KVwjwHA= Received: from SN1PR0701CA0061.namprd07.prod.outlook.com (10.163.126.29) by BY2PR0701MB1944.namprd07.prod.outlook.com (10.163.155.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Mon, 4 Dec 2017 22:45:28 +0000 Received: from BL2FFO11FD008.protection.gbl (2a01:111:f400:7c09::174) by SN1PR0701CA0061.outlook.office365.com (2a01:111:e400:52fd::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.282.5 via Frontend Transport; Mon, 4 Dec 2017 22:45:28 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; 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 BL2FFO11FD008.mail.protection.outlook.com (10.173.161.4) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.239.4 via Frontend Transport; Mon, 4 Dec 2017 22:45:27 +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; Mon, 4 Dec 2017 14:45:18 -0800 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 vB4MjIPL003457; Mon, 4 Dec 2017 14:45:18 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id vB4MjITN003456; Mon, 4 Dec 2017 14:45:18 -0800 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH v3 03/22] qla2xxx: Move session delete to driver work queue Date: Mon, 4 Dec 2017 14:44:58 -0800 Message-ID: <20171204224517.3409-4-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171204224517.3409-1-himanshu.madhani@cavium.com> References: <20171204224517.3409-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(2980300002)(428002)(189002)(199003)(5660300001)(4326008)(2906002)(1076002)(189998001)(36756003)(50466002)(48376002)(8936002)(51416003)(80596001)(76176011)(2950100002)(69596002)(6666003)(87636003)(72206003)(316002)(81166006)(81156014)(356003)(8676002)(16586007)(42186006)(50226002)(86362001)(575784001)(106466001)(105586002)(33646002)(101416001)(478600001)(305945005)(47776003)(54906003)(110136005); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0701MB1944; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD008; 1:0mY0lSBSGyVQETI9QY4JspoXx9q4uc71q7XMOjMJqFAYM52/lF0+jJlsCK8sSqG2uDLgRl8it0FAFMxgUCNpnABJn2KGsiiqrG9QM+OK8gCT+JtQ4/qQib9nSPSsdvus X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c14e31c1-8428-415f-bcb5-08d53b68b758 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603286); SRVR:BY2PR0701MB1944; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1944; 3:G4qyu32EvHyR43UOOEGox3ZFZKbNCGCoh9P4xDGsZyaTjIfX7c2X4YN9dcdtNfEX145ALsueXiWWjlaZP/rRO3VyIXiXiGmu3JhXPVHGzmiV9GbX0ADVOtepx6MinyCnP2sGloZNqt5M8uITiVddmrY2nstVD4bmvKtxULetqIZkn+/7i31DIdCdDS9I6BGbfqKoeYLl/G0Rtr90pFt1sqY8RRqfR58Xy4imjpJC1BV1Z16kxpRaLQO28j12gCsWpyHSeA40QKtZFMWPXZOX78uP+oU35RCnoaKjsbqpcZ2mkszPdCUvdpq3crykBOWvDfH8yyWnR/MlZ4nofUzM00KoW/MTDjbns7Bm0VPYCzI=; 25:BanE9DIkRNDXU2GntcVPbBPSLcVGdk4uuwJcDwBzgd7iLCRqGHUR+AEUA2YnOoTPY52s1pteMuvw1S5Ap8rHE/YCYXHs30Q6yWPwOmibvWmy0iKGvV/M5/GGiTtXvhArVjYuEHNFYaoLK4AoWHSGeAlpWaIDDMRvE/AxSSOxv3qIdR67iNxMRky0jKOPv1OGzhJqnh9r7YM2ZkCZptM1ZR7dyW+eVyc+lOBjeD/jDbwOuM8u4agDT1EUc+FHusPQ8VnIxrD22kwcIU2buHgsc0mWvGldAC3QyfvbPMiHplo4QR0AGMNwEif4MCnHBFBzYxgyQpBLmnVF5UnTwhp1vQ== X-MS-TrafficTypeDiagnostic: BY2PR0701MB1944: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1944; 31:kvCARp0+oz+KNWZe2cHppLliYa7ybxd9v4d/JRNYXG3JDESlXqrSiTFnxO//FnfU3cs8BThs2wV10FE4Ksji96tlQfw3fstHsLkSgI1ZDUwSAaWtmJts0KvHbaAz3dhF7bJCzK27yXusa9ch3BJsKCxJUpGgD+BppglGvN8J4Vh2KQ/iV7wnUMY+RQEZuSxKvdDIL1T2+5Es6Jk4GUVFIqYuXn0FWRU9Gc4Oeo3GhmI=; 20:6hvbF89RddDZyXBgl6F4DpLNjmbEQK5RNdnrcRGDBLk3/+PCVDdgZERB9Th/kYd5+lzrw8twy2KByx+lSDOkCzx/VzURsAqyT+q4tOAC+LneDIG8TsZACUirYm68V5Sq9lrOqTNREyx5dGHvInEmC4K0dWgLE6nBF0KUHXGaTXQCWzqPTlwHBNzwC8M/EZoSL8hQ18q7iPfOydB62P/3u4fuWAj69P0jKHx/gxb9KkvSu2wueRtOGliTyP+YLNz8Iw+TG8/pps1bR9L0ZwfKlZm/sU5My/hvJ8jpUXJF9UOdHCDof48yq5eQO+zTYsZw1DBy3dAE/j32hHaqSMkmMO3UaoRdxRuzHPbG5v/XLdG9i9lNUhiehURy5H5wKTkoGSvpvmKGiVyaCQsG4nI5qJsxLqJIwNOytDAWVEvh8OY5WYL89bK8qVPwbHU/kRJzurpzrnYbqKJ0jpzS9hpm/06rSCI72tTShyyfyuPsU7zVroJkEH22CY3JXYSFSdvn X-Microsoft-Antispam-PRVS: <BY2PR0701MB1944E78536C10F4022FD1F43F53C0@BY2PR0701MB1944.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(3231022)(93006095)(93001095)(3002001)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(6072148)(201708071742011); SRVR:BY2PR0701MB1944; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BY2PR0701MB1944; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1944; 4:riT2mABtzKVAYsyPU8r1M0klkwx+6T8lAJjwqJ4vQAJVMcWFyRe0ssquxMdHGNUgOUdz/yuNrVpiSu37vq23yK4MKxHasZPBhZmgAdOwTHcF0gTaCNz6adBa26fnI4fkzNFSO0voqL8OhVTagR0UfIHuwIj66jeTf7wZYmFThWpfbfoyKUOanT1WYpeWvrqsYik6I1rneb0zQKZW05CgVt5fFTfrINlx/uFjCdQOkkJ/NAOLIYS4yPCTkPz1tZNvF6sykkFpYExEe298D/spZ4++X7/jWTYG7tw61cd9RkxPVEby1L5U2IdWK5+kRiFk X-Forefront-PRVS: 051158ECBB X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0701MB1944; 23:QRHrCSl0ZNQqoSwYB7nm/Y44w6/nB0OFVm3qxWO?= =?us-ascii?Q?VIf4Tj8DshpHXEIbrcGYplmfihwCK+K+1nxtg/RfyExyfvsU4y5K/5YRrFeh?= =?us-ascii?Q?cybiBLDgyPodxz/xDl4D2spmw/+VQdx+z1FVSh6ZwSMp7GKCMdraXpqWpxuY?= =?us-ascii?Q?byknC18svJLqYba8vV+cADF8rp4J2X5d2cld4KwraAZcgcdy0WrC/Khyz9Q8?= =?us-ascii?Q?YdcZpwjeLdBCfmqOfUUE4V1Lb4b+WeWZj1sOZurpX2x0Og7yLoxKQbSCWHJj?= =?us-ascii?Q?vzKaXRK6udzXXdeVsxbmQ04yd6NErm40l4jixFE54uoCI8imgXNzfwhGkzuB?= =?us-ascii?Q?eiNGfaB2TQm7xsHymrPXTU+pdYRtRVTz4mBat6i3TbDMYUtCsuDeQK5ubZS8?= =?us-ascii?Q?6uozAfMidXazjvCrdIW1eyXODZ03M2LvvOQOljR+kP1l4IkSYQFIVaN/GR0t?= =?us-ascii?Q?AySTAZAD6XsTonXtx/Awx/ckOCQ0iEc8mYYR87vLl5F9blqfvOBNDU+ZDeof?= =?us-ascii?Q?vrSCnqMjgbjfKldPuK+5eb0Ux1vG0hztmlX7N+BHQd/6MxU1SHkauhpHwKo3?= =?us-ascii?Q?EgCNDebwCqO+ebcy3sV/R531/IDQ1fw8WURbNZQAHyp+76r7THNA3Lds/t7J?= =?us-ascii?Q?ri7vnnRdCM8B6+ReFfAi5KfEiNwX7v9kMC3xTbpORj/uhVWhIWklilaNA4AD?= =?us-ascii?Q?QGLTcZSPzR2XTHUz/uARA6FtEu5gRfacJYuMwqZHoQtbGzKA6JqDkBf00xUC?= =?us-ascii?Q?QCqtNy+nwJRaTixDkicAC//smjRZ9cOSI9rXfT8NpRcJjTllMeaLmKvaB8iN?= =?us-ascii?Q?67LpBONrLSX1/Y/kfaltMFTMrv7OTiN8Pleg1wJMAsxSmJPhothiR7qBtySO?= =?us-ascii?Q?UyJHPcYvhs5cezkWHz6OZH2FfO0yMVY6OjRgY/B2lEES2z6z5MqwQjb4ZTc8?= =?us-ascii?Q?X51dcdSMHCzBk/uOBCyFtz79M0NW7tJxYIA4s5k4NgMU5xNlFuh2o36X8624?= =?us-ascii?Q?K8zx2W9f7RV6p/0iF96zeObn2?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1944; 6:na+SLZj1VM95XzqA+qyeXz96AQUVSkdbDI4YZNO4yOOrj3V+5R13s4+6ez5jvY5cN1COpmoL/NWENhuEccMxXrLcFWems3xsU3Lxecos/WXnt2UF1LOyh2skwqQ1buLHq5vy3RatEArBuSt3cOS3faCIfi5YDNpiXJ5asy+5ISD6rtBBKkjIr2P+qFfX4hSNJDBXv4sl93HB/y1B3w4j5KrjlxALe1yoFxB1bIXvfP/asF8Eu4O/RO9tquimf/zumN2UQRMTn5fSZZ4hq6MdK9B9eH7FKUf3pA33eGCmvKLl7cLfdWE0zLjtZCb+VwLxydPs0qUQVRvM63493E5sMgurYFNil40mQX7Don7DMDc=; 5:Yjkn5hMNW4WXHa+Nxl37fZAMmnKcIP73PorMpwOg/yMHe8EChIhKOlqBc77Uq+6Q05deBsJvl4Op3nBxu5X+z/RIQMb8b9gocrggvnLWCPIzBxc2mNPnsC3WkTvFfYosGOSLHsCQboRNi0Fg8D/A5bpRez6FzW/wDVbxV1TIDvY=; 24:TFXbDuiJ/v6ric5HBRJdjyYX9ST2LtexgqGNC5eY08cWPXUL7oUV5ZeIKkc82rm1oIFNK/YiJkhDshap1lMyPm0xpu2Jj7Gfvpgx30wIUUk=; 7:zFvrxFyDHc6nfw1PvZ5uPEc9VaYoQhK5EGWAqhoCy4s0+zxmoBo7tC0T1UiaIMwQ4Lvl8ZSGWldc3YD+mRDoaIkyPzR6VnTPKmkBJ44FBhsTsNA9ytcsHN4ugHQTGhibQF/T8lBT5UJjhy1EFGfMbeMBIZToYHmwi3utOsIacqo3CMo+3Y963B3AEKgMlDgN4et93g0/oxipKACZfWdxVQoyhnfe3Cula63Hf/epsryIMh5Eyw9CxsXp0aO6XB2e SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 22:45:27.7888 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c14e31c1-8428-415f-bcb5-08d53b68b758 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: BY2PR0701MB1944 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 46f2d0cf7c0d..dfbf82e716b0 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -3193,10 +3193,11 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) host->can_queue, base_vha->req, base_vha->mgmt_svr_loop_id, host->sg_tablesize); + ha->wq = alloc_workqueue("qla2xxx_wq", WQ_MEM_RECLAIM, 0); + if (ha->mqenable) { bool mq = false; bool startit = false; - ha->wq = alloc_workqueue("qla2xxx_wq", WQ_MEM_RECLAIM, 0); if (QLA_TGT_MODE_ENABLED()) { mq = true; diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 1259ec85ec0a..924d58f5408f 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -1205,7 +1205,8 @@ void qlt_schedule_sess_for_deletion(struct fc_port *sess, ql_dbg(ql_dbg_tgt, sess->vha, 0xe001, "Scheduling sess %p for deletion\n", sess); - schedule_work(&sess->del_work); + INIT_WORK(&sess->del_work, qla24xx_delete_sess_fn); + queue_work(sess->vha->hw->wq, &sess->del_work); } void qlt_schedule_sess_for_deletion_lock(struct fc_port *sess)