Message ID | 20170202005853.23456-10-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <target-devel-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 E33C560415 for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEBF62844A for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3A0228456; Thu, 2 Feb 2017 00:59:21 +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_SIGNED, 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 5A6552845B for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751392AbdBBA7U (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Wed, 1 Feb 2017 19:59:20 -0500 Received: from mail-co1nam03on0063.outbound.protection.outlook.com ([104.47.40.63]:1408 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751373AbdBBA7G (ORCPT <rfc822;target-devel@vger.kernel.org>); Wed, 1 Feb 2017 19:59:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UhU4jz4PziCc5QnWwH2Wentoz5aChGwWz76AoUBjnR4=; b=tAvApKDYkO5x87RL0IXph9l1VhNwDgmlppeHBOmMTuzSRwH/bd3NF9vf9bm/THNFhCu/D/kNp1ZZ+61Ro/AiYuqcR9dr+jn+/jJ3i570XbdTLvDo0PFSa1hDEC2NuHRF2iDm3FaL3gEc1+qUEVbIPnt2MLwEhZgLC/6i6rF2hO0= Received: from BN1PR02CA0046.namprd02.prod.outlook.com (10.141.56.46) by BLUPR02MB033.namprd02.prod.outlook.com (10.242.191.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Thu, 2 Feb 2017 00:59:03 +0000 Received: from BL2FFO11FD045.protection.gbl (2a01:111:f400:7c09::109) by BN1PR02CA0046.outlook.office365.com (2a01:111:e400:2a::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12 via Frontend Transport; Thu, 2 Feb 2017 00:59:03 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BL2FFO11FD045.mail.protection.outlook.com (10.173.161.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Thu, 2 Feb 2017 00:59:02 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 6A.BC.01420.D0282985; Wed, 1 Feb 2017 16:49:17 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Wed, 1 Feb 2017 16:58:57 -0800 X-AuditID: 0ac94371-7ee9b9800001058c-9d-5892820dccc6 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 1D.63.16817.05482985; Wed, 1 Feb 2017 16:58:56 -0800 (PST) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Bart Van Assche <bart.vanassche@sandisk.com> CC: <target-devel@vger.kernel.org> Subject: [PATCH v2 09/36] target: Introduce a new workqueue for TMF processing Date: Wed, 1 Feb 2017 16:58:26 -0800 Message-ID: <20170202005853.23456-10-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170202005853.23456-1-bart.vanassche@sandisk.com> References: <20170202005853.23456-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOLMWRmVeSWpSXmKPExsXCddJ5kS5v06QIg4fHLCxal75lcmD0+LxJ LoAxissmJTUnsyy1SN8ugStj/ZYrTAW3hCq2tog0MH7m72Lk5JAQMJH4+PQhYxcjF4eQwFIm iQ19B1lBEkIC2xkl5l3LhCk6fPcxK0TRZkaJEw8XsYAk2ASMJL69nwlmiwgYSPzuvcAIYjML KEnsmbqMCcQWFvCT2N+7EcxmEVCR6Pj2CGwBr4CDROOjPewQC+QldrVdBItzAsUXH4eYKSRg L/Htz1EWkMUSApdZJKbMO8II0SwocXLmExaIZRISB1+8YIZoUJc4uWQ+0wRGoVlIymYhKVvA yLSKUSw3M6c4Nz21wNBErzgxLyWzOFsvOT93EyMkOAt3ML6+7X2IUYCDUYmHV0BkUoQQa2JZ cWXuIUYJDmYlEV7fRqAQb0piZVVqUX58UWlOavEhRmkOFiVx3tbX/RFCAumJJanZqakFqUUw WSYOTqkGRs3MvakckmcPG9yat8NX+tU5zSqOh7OuWL99V7oqvvsUx4WLJeZfnzLbnHt1+Orb rtlzQuZt6XrYe+PjExYjtrlvm0rMlhvVRt2ZImfVtY/dy+EL1xZ+N+5Md3uz++L3+eb2fnz+ oofv5sQt52LurZO20/it1d9Vbf+k2c/l+PsT5tm/dS535CuxFGckGmoxFxUnAgAydEriSgIA AA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkuLIzCtJLcpLzFFi42Lh2siRohvQMinC4MZ5S4uDP9sYLVqXvmVy YPKYtuY8k8fnTXIBTFFcNimpOZllqUX6dglcGeu3XGEquCVUsbVFpIHxM38XIyeHhICJxOG7 j1m7GLk4hAQ2MkocvzaLHSTBJmAk8e39TBYQW0TAQOJ37wVGEJtZQEHi4tRZYLawgJ/E/t6N TCA2i4CqxLGb88BsXgEHidvPXrFCLJCX2NV2EczmBIovPg4xU0jAXuLbn6MsExi5FzAyrGIU y83MKc5NzywwNNQrTsxLySzO1kvOz93ECPYqZ+QOxqcTzQ8xMnFwSjUwFm1v3ZE96euM4Pm/ RD6dCTl5wVjD2/Ou2j4F3+4O7ZzuNwGSSVcTu/xyJ0fmMy4NaH51U7Cb/eC9SS+jJPbf5kxa LHy7reDlx/tZV9m8mZJzH/SKb2l/nhRp1yxXs22xorNY+5v1ptm/BZOvB11akJv9zcY/3m/X wrpHLnJ/fZ7drDQI27BeiaU4I9FQi7moOBEAKB+HhZoBAAA= MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(39840400002)(39860400002)(39410400002)(39850400002)(2980300002)(438002)(189002)(199003)(106466001)(97736004)(92566002)(8676002)(47776003)(69596002)(1691005)(36756003)(86362001)(50226002)(6200100001)(8936002)(356003)(81156014)(81166006)(305945005)(4326007)(6862003)(7049001)(68736007)(77096006)(110136003)(48376002)(1076002)(50986999)(76176999)(33646002)(2950100002)(5003940100001)(5660300001)(38730400001)(450100001)(53936002)(626004)(2906002)(189998001)(50466002)(6666003)(2270400002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB033; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD045; 1:eCvXe1gZ3qRCLZScGBIkKqWusRZQ+zb7cp4kNQ2wBNYPz9m26b0u3Ia+Ju5v79d+AJepiEyfgrDIS3WXTpEslW4RKfxf0M84H7nK3mmq0x0rty+Aw/mlQDPLMpO7CnIGfEnmqLCQwvEdnMIw0qoxukhP+C7lY+bxZ4R+TgvJ9LlsvIlDW6SDzhPwFKKVkL+cB1dSMlYAxQh2bxolyAMdlRxqWG2iVFAk/Qn1A5llsON1+qi2fENyGN2eVLE4XM/Xpm0b2IqOy23BNtgizLLpn2Ap+V1gLnqXpnpJxqH2BTEODZrtQ89+VIAFoAdQLG7mbBc3NmSf7K6c3cz9ycX4T+mgCmRikdQnIuyfGTVPTyXSx/LJ9eVtYpkOYfybr0J4lhT15Hyse1XodzswtHMGCAZzCJINELk/9iX00pPQk013hvx1RmH4NjoeL1av3OQMQ1xMgp7cg+oI8TnZfsvjlDz1yu7HkjOCXC3vLi+S9S/46ER5cqi+m/lFF+NKkKte X-MS-Office365-Filtering-Correlation-Id: 85dcf6c3-f14c-4b15-403e-08d44b06ae37 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BLUPR02MB033; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB033; 3:HBoJo3pHeAZgwLVW29gC8oMuvnw2Jkq1DpKp6Ju9YbvSwt/bIVOVJVl0vt8idJ5vnmcKjCBd2rVD/a6aqqRBR7rmh1gdmbWE9q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KG6I8bJe9p39lrUAHG5GRKF2SnR16Q==; 20:D/AbY2irhnXLMgnZcwaNPCqHNBW89fM1P6TAxo0YMEteHpZMpV8lfJbkFWzqR569ZbzPpViH+uFd9Q2QxBWr/haWhxnOaCD3x8B3j+/qd1Dxj0iadnxdOcOWhqdIB2dn1AFLcWouLCC9D7KwtSSe3zcr0Te4CBf/WUAWdLsZBZNgfao9aIyfIi2kR3AYpY/REagfqvFhc9qjCj4TkBfxLN811H0sDkrBwuV4UaLhnokJKbQx4gxMQ7kxAej4QoNXG75tiWkppQ0+r/A7qd6dg7Ibg5LfrDYc/QHcYMjzKwPF68WGj4ejUw9eD5h84p0VRtI05cJPxo7uekUA/lvw/QdeAynoRy4yFWVAKnmj6UzC8LDFCisUx392X4G8o/FA31fHLd3R4CFKBnkvX3XhZFRb7ihBVeRiFKpMmNWjghbBOKiQggfkjwO5Cfh19bFm25JkjJZdLkFChW3w2jdt1BgyhS1ou/HqGzQecK9lvwNRJAjHCZO93s3d3awAuF7Z X-Microsoft-Antispam-PRVS: <BLUPR02MB033895432E9DF9C4C0FAD75814C0@BLUPR02MB033.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558025)(6072148); SRVR:BLUPR02MB033; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB033; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB033; 4:Gk0WnZghIKJnY+4QbFjl/jHK7Gtto22imwkDcyAbe33SilYBCKfjey3wDBrv3UJfrIG6YZYAGI+drEf9Yo0QCU33WIr//Gg94YL6/a5WAMlaiR5xsPEf74a67d/1yQ1gwp8Nw53mfKEb+KYR9ppZYKtYMtH8YoDOI8PPMdkWbUI8NUcXmUPO3YFaKP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VCJS6g=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB033; 6:CLNYlZ4mkWQbt8zoWEINKagvljJs1Q2r9xTlbvqF6lQCN5MlY/rRoUI9ax3ugn1Hvyu5oumWdkDoIEd78Qny2liCGWbFwuzD7j4JvgDIAoAT3wRz4Xi4Liy6FmHiCQ2xeP75t72yISCacqxvfwoBMtwHj6sS59zrt3OLgGwSBMJJpKR2csTxaI9usWReq36iykShKHvjz7tQ9izdoDaGH7Kwf5usH/5NAE3zc7rWku+/88rQebYYyjb+cK1Q4Y0dU8n4dFLDlahCh3zrBLR5F3fXp+OUlh4UsCkskestM3JTbbpPcjldmo+MpDkP0gGjDz8p5PA0mkn4cY29uh9986zEca0MCHlt9BN7a0qwa29iZc2CkeG+DzliQFb0NzUvko7G43OtgjJ6H3KrXPzNKtft4m8GpvkeYYziFcbTZ/SWjW351Wo+23w1MzDs5UNX; 5:vQ2I6DjLoV9QmcNRuR5dgG9VmhPhpkkQzeEBS0KUOL9zCSluc9e/Im8EWYwBUDTPtjHFdKcKtZyKBwhwE6+XsYDrqSLuQvuWL+6sojnJy0LEjr827hQ6XWuKvuX2cJ47UUYMck96vn2YRJXmeyWgI9U39rZL9o3tk5G1rCx/sZU=; 24:n2og7S1azBNT2EK/eIJJ8FxQNf1c1Tpmf1RUcb+2veIYFmB777bUn0Lgu5KjlJaUk709Gh6/FzL0ekcJd4x9E2ezkxKZqkw+ARclGDrYXGU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB033; 7:PfLvg/o9ZFacZGZhTZyV8BqL5Evr7m45VOqs1SFgDACOWNxYhk2q96XDIGHsA9zak41TBuqSjEKaXcjm/C5eplc1QXnUGTvahkYFhhamhuFmgbgI3v2Cn2dQbpV7bkZlHAEpDysjugWWC/Zi+2Q1pPVPZ9CObokV8t5ctxrVJ49N9JQRkvEiKuSVjjwuLRS/w5ihrzYTP8V3QHoQ4vxAx7d4t9X4tiwHD+a76YU8Uii7rSYkACtm30vteSs4cQz/1LPFIq/2XPEUoSkGXOqLq8gbRw/EKzGdPWo5WIWhkAiX+8zjReYQ+qhovUD4FxKgdIqBs8UyGMYWvxscjdYKGhBxWeZu6y4njXJskucGNqBHbiRtHRnkp6cTOe8LG+W/545A5/fKyyJUYP6cJHVIQKhNvHXwB/jp0N4tUKLzUGYZfgbuShye7smtvG0wID+WHVIC54x+fu8B24r/TWeBDd2CZRz7DLQZgEF3qsvUk4Y+A/wwg++CdE3VaF2o+0S5uc1UGk3auB+j+Gxmbmttge1TgE5r7OAeGcrD8vxTGtoCDJn/2GjcBUPfUNYXFUH/ X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 00:59:02.8486 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB033 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: <target-devel.vger.kernel.org> X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index ab4051fbab95..18a76ee641ea 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -267,9 +267,18 @@ int transport_alloc_session_tags(struct se_session *se_sess, goto free_cmd_map; } + se_sess->tmf_wq = alloc_workqueue("tmf-%p", WQ_UNBOUND, 1, se_sess); + if (!se_sess->tmf_wq) { + pr_err("%s: workqueue allocation failed\n", __func__); + goto free_tag_pool; + } + out: return rc; +free_tag_pool: + percpu_ida_destroy(&se_sess->sess_tag_pool); + free_cmd_map: kvfree(se_sess->sess_cmd_map); se_sess->sess_cmd_map = NULL; @@ -511,6 +520,7 @@ void transport_free_session(struct se_session *se_sess) se_sess->se_node_acl = NULL; target_put_nacl(se_nacl); } + destroy_workqueue(se_sess->tmf_wq); if (se_sess->sess_cmd_map) { percpu_ida_destroy(&se_sess->sess_tag_pool); kvfree(se_sess->sess_cmd_map); @@ -3133,7 +3143,7 @@ int transport_generic_handle_tmr( spin_unlock_irqrestore(&cmd->t_state_lock, flags); INIT_WORK(&cmd->work, target_tmr_work); - queue_work(cmd->se_dev->tmr_wq, &cmd->work); + queue_work(cmd->se_sess->tmf_wq, &cmd->work); return 0; } EXPORT_SYMBOL(transport_generic_handle_tmr); diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index c9aada11a30c..f6e5fb22f338 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -606,6 +606,7 @@ struct se_session { spinlock_t sess_cmd_lock; void *sess_cmd_map; struct percpu_ida sess_tag_pool; + struct workqueue_struct *tmf_wq; }; struct se_device;
Several SCSI transport procotols require that SCSI task management functions are processed in the order in which these have been submitted by the initiator system. Hence introduce a workqueue per session for TMF processing. Do not specify WQ_MEM_RECLAIM since only the tcm_loop driver can queue TMF work from inside the memory allocation path and since the tcm_loop driver is only used to debug the SCSI target code. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> --- drivers/target/target_core_transport.c | 12 +++++++++++- include/target/target_core_base.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(-)