From patchwork Thu Feb 11 19:05:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 8284571 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1D453BEEE5 for ; Thu, 11 Feb 2016 19:06:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FA0D20222 for ; Thu, 11 Feb 2016 19:06:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D3D6A20121 for ; Thu, 11 Feb 2016 19:06:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751000AbcBKTGE (ORCPT ); Thu, 11 Feb 2016 14:06:04 -0500 Received: from mail-by2on0072.outbound.protection.outlook.com ([207.46.100.72]:19219 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750983AbcBKTGD (ORCPT ); Thu, 11 Feb 2016 14:06:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8d//S99RH6sX73Nb1eRdRPUHobMxdBARZ75yUaHaS60=; b=IRQqtGyqKWXAVyDWY8RHn4G6uPbD+Xm3OVvi2te0sSBBlrK3z5S423c+TAuL+marCrcJDS4ktV/jwQt0++Xj3FiYbS1bRm9Hxj0G8JRLBjIQeLpVDLR23l9Y7YEnKj3PGKis9o1Me/oAnn8fzp6ni34vl8Edf/v2fBkVT/4FJNc= Received: from BY1PR0201CA0014.namprd02.prod.outlook.com (10.160.191.152) by DM2PR0201MB0830.namprd02.prod.outlook.com (10.160.95.151) with Microsoft SMTP Server (TLS) id 15.1.403.16; Thu, 11 Feb 2016 19:06:01 +0000 Received: from BY2FFO11FD020.protection.gbl (2a01:111:f400:7c0c::133) by BY1PR0201CA0014.outlook.office365.com (2a01:111:e400:4814::24) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Thu, 11 Feb 2016 19:06:00 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.174) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.174 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.174; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.174) by BY2FFO11FD020.mail.protection.outlook.com (10.1.14.137) with Microsoft SMTP Server id 15.1.409.7 via Frontend Transport; Thu, 11 Feb 2016 19:06:00 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com ( [172.22.12.162]) by (Symantec Messaging Gateway) with SMTP id 50.3E.03682.79BDCB65; Thu, 11 Feb 2016 11:05:59 -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.248.2; Thu, 11 Feb 2016 11:05:58 -0800 X-AuditID: ac160a69-d23ff70000000e62-a9-56bcdb97d61a Received: from [10.60.52.49] ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 5F.D7.02402.69BDCB65; Thu, 11 Feb 2016 11:05:58 -0800 (PST) Subject: [PATCH v4 09/21] IB/srpt: Simplify srpt_shutdown_session() To: Doug Ledford References: <56BCDAAD.7030906@sandisk.com> CC: Christoph Hellwig , Sagi Grimberg , "Alex Estrin" , "linux-rdma@vger.kernel.org" From: Bart Van Assche Message-ID: <56BCDB96.4070404@sandisk.com> Date: Thu, 11 Feb 2016 11:05:58 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56BCDAAD.7030906@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGLMWRmVeSWpSXmKPExsWyRoxnke7023vCDOZuYLa48PQ7k8XL8x9Y LVauPspk8exQL4vFjbYHbA6sHov3vGTy2H2zgc3j2fTDTB7v911l8/i8SS6ANYrLJiU1J7Ms tUjfLoEr4+ePc2wFLwQq1r+6ztjAuJWvi5GTQ0LARKLn5SbWLkYuDiGBTYwS775/YoFwdjBK XJqxnRmm6suBZ+wgtpDAHEaJv19iQGxhAWeJ988XMYLYIgJqEpteLYKq0ZJ43t8PNpVZYBWj xKar18ESbAJGEt/ez2QBsXmBiq5M2ARmswioSpxbfgBskKhAhMThzi52iBpBiZMznwDVcHBw CmhLzLwSAWIyC2hKrN+lD1LBLCAvsf3tHGaQVRIC21gllvTdYYK4QV3i5JL5TBMYhWchmTQL oX0WkvYFjMyrGMVyM3OKc9NTCwyN9IoT81Iyi7P1kvNzNzGCY4MrcwfjiknmhxgFOBiVeHgN bu0JE2JNLCuuzD3EKMHBrCTCe38TUIg3JbGyKrUoP76oNCe1+BCjNAeLkjivdYtamJBAemJJ anZqakFqEUyWiYNTqoFRIJDjnfZmWXb9ENcWm7PCO3yPMKYt/O5VcfBKV+4jXcWdry9/lzJX knQyeLG2yGLq3yW6xrpbxbzeb1/5Wf3KzbZNH3f6iL20fCG04+if5Pbm1Gk6Qv0nsuYffZlT vPtZ63evPU9352WUM9blc2W9u6bfcDBc2MdpzrkzUvkFZrd3dJ+8uptTiaU4I9FQi7moOBEA cUpu7okCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLJMWRmVeSWpSXmKPExsXCtZEjRXfa7T1hBh0/9SwuPP3OZPHy/AdW i5WrjzJZPDvUy2Jxo+0BmwOrx+I9L5k8dt9sYPN4N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-Antispam-Report: CIP:63.163.107.174; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(64126003)(65816999)(76176999)(59896002)(83506001)(54356999)(11100500001)(80316001)(87266999)(5008740100001)(575784001)(50466002)(86362001)(19580405001)(65806001)(19580395003)(23676002)(47776003)(50986999)(2950100001)(77096005)(36756003)(65956001)(106466001)(5001960100002)(33656002)(586003)(1096002)(1220700001)(4326007)(2906002)(230700001)(229853001)(92566002)(87936001)(189998001)(4001350100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0830; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0830; 2:2DrmHIju6N3e3gWmDNezHlSHDS+qeUe7I6QSthSkUuvrVRDEnhr7wd+3qhsDmvxGiyvnzCqLtJzHPfq4Sz37YpU8OsEf2Mm2aWRJCjq6qB5gpGw4ueRZom5ycRvDw1zhaSy4ysPEFeN61I2XQ2Km7A==; 3:cAeJ5rlPRVQdZIXa+tLAoxVN2KYVYdiiN+a41Qc+/A2vife/PELgfnRb1nytMsPYGVPBEZnfqBwE2+OtBBt18xqJKO3TiuJB3rGV55UWIaEE4BVB4FQAwXmEVCa3O4BljPTjLXZUzSeXudA7CR64OU/HrWN7102vgnDsL+c48qSosn7kH88Xw5Sw+CQpOTMmVfhiwwC+Ci/fddUTzKsDQQipUXMw58gMxfpW86IQTdteA2/yjoWshyHLvuZJEjLPmqvTmjQ47LiJfZqEBeOaPA==; 25:UEI/L4ZEk3xt7FbDr7XzU9vRUmIuEwq2UZNU4BY51tHQoYM3nVioCsMSxsw757tstm86niGRJEifDwGPuDtGQHyDHuH7RnDLlvgujvtgZta+CSCIZWakcw6YqRWaeBc65eanURKNiKKDoD/6OEdViUVoZMMl7223ovRBRVUeI13xtqas7fW+f8DEOd4g60K0eUjAti1YkegaqLD8lutNY4ymW6AmOZZFm3+xugcE67JYs/ricuO9HnErSW0axV0l+LCMTvGn+mYVHnqj1R+V6YbNIztI43VWksJ7V4VBEPevH0Dbf2DVfkVRw1tzZQbP X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:DM2PR0201MB0830; X-MS-Office365-Filtering-Correlation-Id: b59973e3-9b5d-4452-58ee-08d33316615f X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0830; 20:2e2Zyd73dhKGPxEyuHrNVq1HRcxNLUvp17TlTbUESJwMZIEr6R2qaZbSLipNIKY6J30Q8VMN5vKdmh7xQavcYK3JbEo+tCXAoW9LeUUEzWH7+eTbexek7KZctDR74Imqg9RHy+NlHmkrkNQRbX1c4gBGp0j7c54F00D8sHAVWGLDBMzROYXnvYx8ja1jv3KZfDuzRCPy63jA0ERp+pvHJdFLgRftbQWA9E2O6KdBylMSBcuflpSdQ74mPQYe5kOBSh/4sh5f7gz8ijRykJzEPHcmHwxEypRRlMKTgmas5EBSKRXBAeXQzWYvMLzdwRxqTWTUcFwZmVkzc6GNQaj4md7h2MdOQTWxVbOzR5r2jvmCM9NMgz8fR0OnVQPqt+TPFWGbCgf7hhda6sEt3GQvrqcL7nI4NKCNQ5UY+hsuRKsxo6O1zR2OOJpsQ4XC4iDklEjIHXSUgOSP2gve5qKAwXtPBAFnj1seDdKEdk3lh29SJvKQe00IY5X7o54drfAy X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13018025)(13024025)(13023025)(13017025)(8121501046)(5005006)(3002001)(10201501046); SRVR:DM2PR0201MB0830; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0830; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0830; 4:NL8dEWoi642mCiVdkm8ViaaEYRjVLPXj0QWaqU0HBtXwfkD7/F1nXR2K4bmB8HK4659E0hv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G5UMHlxSzRv?= =?utf-8?B?T0dPdEU3enZscGtDUmhqbTZHcGRGdWNNNlJYUU8xdkVVRkdBSkFwM1RqQWhS?= =?utf-8?B?NlpLS0p5V3daSlVPTlg1aFdjQjE1U2ZCYUtFMVVJRzJkcDg0UkFVMWJXS2RP?= =?utf-8?B?WjRhd3RnPT0=?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0830; 5:YDPEYbzApgfZiAojBsqi9IX+0lLDaoFepNX8rg2LaeCQx6j2wSJUx8C7kSDvGnPrmSfyQP9UbAmuHqsd3Sqe+woyUHP+cK1GAZdLAMaXzDOEs73Ctm2gjcb6dvjTisJdwd7CRHOTG0K2f3bVT/UWGA==; 24:7dJ76a/6HOEVQbkoizZn44xR3LAffY+wdcGUZjL9e2SZYQZv4NWQV28tUYw+yoB+ruacvKsvZ+4Cg56pFeyKmkfC/gjq9iNIcKF6fDR+Fq4=; 20:4cCCMNEpjlss1Mwog1gGwQ8OERV4zNviSeeXvT0d03OVjSrVRMyUM9OMK1ffwQRvfWgrj8IvlP3h/+tcgyWEpL+rpxLxDzxKVa3tyNqtzs38FkevJuMW7HBpJDX6sa5TFZr+l3MIq8FojSmoFpCv1lb4gyrMFYL6OZZnAY8P8tw6FxUnqOutwacjmDihtMAKXyl+qJCWKUADiLZCnKEXs1EWr6lD/vl6T4DA55AkRSQeV4S6K+7l+4lSOdgJ1+dp SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2016 19:06:00.4839 (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.174]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB0830 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The target core guarantees that shutdown_session() is only invoked once per session. This means that the ib_srpt target driver doesn't have to track whether or not shutdown_session() has been called. Additionally, ensure that target_sess_cmd_list_set_waiting() is called before target_wait_for_sess_cmds() by moving it into srpt_release_channel_work(). Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Cc: Alex Estrin --- drivers/infiniband/ulp/srpt/ib_srpt.c | 16 ++-------------- drivers/infiniband/ulp/srpt/ib_srpt.h | 1 - 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 863fdd1..bffca47 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -1892,20 +1892,7 @@ static void srpt_close_ch(struct srpt_rdma_ch *ch) */ static int srpt_shutdown_session(struct se_session *se_sess) { - struct srpt_rdma_ch *ch = se_sess->fabric_sess_ptr; - unsigned long flags; - - spin_lock_irqsave(&ch->spinlock, flags); - if (ch->in_shutdown) { - spin_unlock_irqrestore(&ch->spinlock, flags); - return true; - } - - ch->in_shutdown = true; - target_sess_cmd_list_set_waiting(se_sess); - spin_unlock_irqrestore(&ch->spinlock, flags); - - return true; + return 1; } /** @@ -2008,6 +1995,7 @@ static void srpt_release_channel_work(struct work_struct *w) se_sess = ch->sess; BUG_ON(!se_sess); + target_sess_cmd_list_set_waiting(se_sess); target_wait_for_sess_cmds(se_sess); transport_deregister_session_configfs(se_sess); diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.h b/drivers/infiniband/ulp/srpt/ib_srpt.h index b0ede97..9c326c7 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.h +++ b/drivers/infiniband/ulp/srpt/ib_srpt.h @@ -286,7 +286,6 @@ struct srpt_rdma_ch { u8 sess_name[36]; struct work_struct release_work; struct completion *release_done; - bool in_shutdown; }; /**