From patchwork Thu May 4 22:50:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9712905 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 E5E5E6038F for ; Thu, 4 May 2017 22:51:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA30928639 for ; Thu, 4 May 2017 22:51:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CECA2286B3; Thu, 4 May 2017 22:51:59 +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 4CBED28639 for ; Thu, 4 May 2017 22:51:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752949AbdEDWv5 (ORCPT ); Thu, 4 May 2017 18:51:57 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:39278 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752937AbdEDWvN (ORCPT ); Thu, 4 May 2017 18:51:13 -0400 X-IronPort-AV: E=Sophos;i="5.38,289,1491235200"; d="scan'208";a="15312312" Received: from mail-by2nam01lp0184.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.184]) by ob1.hgst.iphmx.com with ESMTP; 05 May 2017 06:51:13 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7QmhRwlfHYQPaZanF0dwM+4dVLrFha8Ua9JdjptKd1g=; b=Rec6/WwC/lF11vV75bWEI0DKU0apDhoNT3xHYrnf6r9lG3augQ7ER4oHf3DmJrW4R7Kejh/fWQNAoXDqZkzQSryHIM81UqEZoTs/hJCVQJXlp5nDvAx4NFcj4y9KWVYAA/eJOxQhlRqEQz4+ksoPeUPi1SLpSS10F85CBjwPMRQ= Received: from CO2PR04CA0124.namprd04.prod.outlook.com (10.165.95.26) by DM2PR0401MB1214.namprd04.prod.outlook.com (10.160.217.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Thu, 4 May 2017 22:51:11 +0000 Received: from BN3NAM04FT063.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::207) by CO2PR04CA0124.outlook.office365.com (2603:10b6:104:7::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Thu, 4 May 2017 22:51:10 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN3NAM04FT063.mail.protection.outlook.com (10.152.93.170) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Thu, 4 May 2017 22:51:09 +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 1B.D4.29323.B50BB095; Thu, 4 May 2017 15:51:08 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Thu, 4 May 2017 15:51:03 -0700 X-AuditID: 0ac94369-548749800000728b-ff-590bb05befd6 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id C5.F0.11415.850BB095; Thu, 4 May 2017 15:51:04 -0700 (PDT) From: Bart Van Assche To: Nicholas Bellinger CC: , Bart Van Assche , Doug Ledford , "Hannes Reinecke" , Christoph Hellwig , Andy Grover , David Disseldorp Subject: [PATCH 10/19] IB/srpt: Fix abort handling Date: Thu, 4 May 2017 15:50:53 -0700 Message-ID: <20170504225102.8931-11-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170504225102.8931-1-bart.vanassche@sandisk.com> References: <20170504225102.8931-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHLMWRmVeSWpSXmKPExsXCddJ5kW7MBu5Ig/V7WSz2z3rGZPH1/3QW i5fnP7BaLHizl81i5eqjTBZtq88wWrQufcvkwO5xf/sRJo/dNxvYPN7vu8rmsX7LVRaPzaer PT5vkgtgi+KySUnNySxLLdK3S+DK+L75IWPBdN6KTSu0Gxinc3cxcnJICJhI9B/YztTFyMUh JLCUSWLZ9mZmCGcro0TT3neMXYwcYFVrdnBBxDczSpzd/Y4dpJtNwEji2/uZLCC2iICOxKy7 L9hBipgF/jNKbP/2hA0kIQxU9OXADrAGFgEVic8rn7GC2LwC9hI/b3QzQ5whL3F2y04wmxMo vnfGfSYQW0jATmJN/2ZGkKESAqtYJVY9P8oO0SwocXLmE7DNzAISEg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S-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(39450400003)(39840400002)(39850400002)(39410400002)(39400400002)(39860400002)(2980300002)(438002)(199003)(189002)(9170700003)(8936002)(54906002)(50226002)(356003)(81166006)(6916009)(76176999)(53936002)(478600001)(50986999)(8676002)(305945005)(6666003)(2950100002)(2906002)(189998001)(86362001)(5003940100001)(77096006)(38730400002)(5660300001)(110136004)(50466002)(1076002)(106466001)(36756003)(47776003)(48376002)(33646002)(4326008); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0401MB1214; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT063; 1:jTGvQwVHgHDmgtguW28oZWj2nTz1rtKnqvbo/FG/+Fkzur83tb1V13rJQDEtVb9UzwAK85K+0CYSo8FxoNoy6Napq5EzWdXwkdUd07OVRp+yIe5wZV0xZamm2TwdIKM2v9G+21FOkcOu3GjR82pwHP+X3Wbp1Oc4XBdkW8BQUgSwTBGNqOnlcnJiBE1fPksCeE0UUHtHSD/T1wMVst78R+Lej9zv6pkVCXFbg6PvYMMsaKFPw0A+DBUNbPL5H3DykCqxqajLazYafElXk8HaJzD4rdRaggx1fp3wYnbT135EkZPNhz/VYcfRXYGm2oxRlMA7qKpcenWK4L+VP6BK++s7CzWBRWETP2k8DuYLpMN9nC5ocTJoO+oxS6T/vx8pnd7iQQZJYSu1D7NzaDduE4QCbpzDgHLR6lTFzv1sUlGKLRtOINFT+Ys5H5ZYMl1+S1SE98NbAp+c56NyxeDUxtyvmtqs2PYadMzkUQ5E5J71AgSINYPy3cmr6kRvvU8VQCDIjTFBHMIEWpj2lKuh+1r8oMoagB91VTSt553Mv+U= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c6f9bf5e-9762-4d6c-a642-08d493400ed4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM2PR0401MB1214; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB1214; 3:T130OpFL94QB9TrJ9NCvdPBQIchW5MfJH+hQJn3FDUvH7L/6prF6un9SGtaG+ma1ICVgPkpBAhVKxjsNblDuVz3SccIgVINbyuFYKuGZbAEUXYC5gTkar4DRG11JM2k82D73bv++X0F7wu3DoSHRzC1A2EesBxDteT0DmdyZ6tOXWM1Pl+SsX1cywQ/tmWtBGaWoxle37bpA/8liKjS86711zrnOEA4SnNkfkY/6f0mVlJOc29huDMee1IuvosEEvUzz28NnF5/sI0AUUj59hoPl++zTyYtg/kNhLLJdbE2wQ2xURcLIdRkRZBbY8L7zm274CRJaFBM1aRlc9E5dNf+l4HwjBYP5ALRp+fqxMq4GeXLHZCOPJwI5N85M3jwG7R8X2UvWg8h6VBXkSEJ51dFcd2gGXBWbE5CfI7rgSc3liNsWjcaLV/xdlF1cxMaAGoHR5F6D3p/1wJFhipb09MEMEtZKUV/nziQmR3YJVA6Ddmx0SlSSK93zta30J0SD X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB1214; 25:B+aG9aquMlXggWzUWKWspSFLqNJfRoHbs9J81W4TWu1Gg0ATgZY5wORXVWWX5IFwoh/saRUg7Rh+wpaWFy5R5oukxhlI5xyMxQW8GTWSGICYOnomRAb4UidH2N/XWvlgV6cq/+xEKvE7/Yt0OAa8k9/Tl92ct2qUVoj703uI3PMBhlJdJ+X4aTtr0LXIQw4uSKaAWNteEkaFd/oDkAPhc/QNhX9Xb6qzb8G9NaSYSAPlj7M0KahyL2U4zddtaePZngFmM0kczngmoooTRDg9hByghXJ00XemQq7h3lj4j+w4zrqGiXXu74RfvdXWBKYj1a4Nt8BjW2Q2wZ41g3HfsIQu1lPUfewFIQGvC5tkdyawHieafpv3eXsQByo9NA3PPNnzeTp8Ks86WEchpb80zdNbEN/piCkypLmw+aDnyfVexxZix4ZIxD/TMR1rIx7sbqBywz809APqgpP3ZUnPXZLfpiCPEOvr0SNm35claEU=; 31:pYtQgD6RQdeymilDOJL2EtBVook2Vgsw4i6ecmLJuvdFraneNjYioTxi0Nnm7U2hwBmRKcUg5exWmk9FmbK1OFNfhl4OyzPkwo3QFjkCdNpblr7Dgt720m8HDSs6hEehTwpwuRLSqAw+1EBnex4Si3bKWXV+jmyGdt3BnWP5jyrTl7+8WwDHN5SxhvaSw+Z6KAh9KtC5v5UYohMZwNP6ukZyw2/VoIrfjNVBOOVMxPc8mA2qC2j+sezd4XqsPZgeJAn497A1H3+04BkAGCkgXQ== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB1214; 20:ckLr26/GidSM0BOBnkUAPQHHrA8gfipla0LQCp0T5CQjBVo6ThMlLco4w28WbLMjBxRUTwVDoF2ljrpMtEi8v/LRimnsPRa3o03N5ncqXXJOKSgTmAaxyGKesrSS1iqkeUvacDjUahmAlsUOCxzbn/l6AMY2QW8gq36uBpu/tnNNX1rpHy1bYOzjJG25pdlX4sgymwIsMlDVaiH33aQ7msPJmnvbsJTpZNU2eFTgfYpSjj+KbMUf6Anl9Gwx8BUnYxW5KIJFbwbnv0A1h5nC5MXzHvn1zrRkBCCsac+epkOrsTlrt+THpajKuEI1jN8SBeYl0Yn4Vyr2pEu41t/fsdXoVmYZtHvOfY2rvOvWgNfIt6Qf2u4IqlFoHvAPaNlHc2ALxKB6Wq2WHkAG1hN39F6xoXZBRIHneJQevqorUK1LymsS9OTWjuONrhqPzpKHYvOLZYRjX1nmKJK88eXVhRfzAhtVuYhMdk+eMdPjKgIS0P/CoBKMrHwNFnK+fKyb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(20161123562025)(6072148); SRVR:DM2PR0401MB1214; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0401MB1214; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB1214; 4:Fsh7Urb7ZCL+uWYo/7UUwd1ztpsuAXFAwx5fNvPYwLmhvYDekbL1k1kH3yHMCUuThcKEzCWw1Pd52ecwJjJ/IAoL9DOL5LERjaez4BWcdmTTUqxV/aPUjrXRUZBu8rfnE1n/C1uWyZhstaw7Yu1BXM8BvUlqvhe8oUU/KnwRfAZdFMxpd/IFoq2iNHqRAoxTzxnsRG60JyCXf6/n1xsRPFAdnSODTtz+CV/Yj0uC1H71z5yLOnhT/TFX5OAL3X24j6aU3KiUvtL6KAEQiOCu0lj3k+RQUSfgelTMAW7VLoi4PVvGMsE8XW3nfLknyK17+/zxKT5S62IexMFD+3whYZcSHjCikqBmovIr7NHkkjG7pcph5HKAkcEu2gWJBd6KdVIZhxJJxg7sAZq/5qHOdFfnH4BOoX+cnwHZRJLp8hXkcN7kSHOvIT2J5Qp0Jc8J2J43P20ZHiPcsMBvDvr8xVyymR4rayq4O59u0SqJYuaoV36HTwI46FAYbcKA/p81fz+hQaGE8NpaeXqmjE3F59Y5rlJRDDreXnf8eVVrsy/jTsKBa0+be2BwpD8UbomX2AvBbloy2qHa3uJ40VmKreItHz6pzLlWkenfRjpcSeMWmUkb4cksMZB5CO5KAyZVRzMrD2YQIAC8E40qI1jtsSA7k/GNR9hp6nTwVObA+hd8Z1OgJjcfFGq2ccXe/3b9zSyIMwla5w12DJnvBoxFNpd8oBB1AQB+A9SE9dtSzCco57Lhu8wnIoys0hNUwQy0xxYboisjKvCUsfrkddze+z0TyFPqgqHZ5tdyjukdK3H2by9Hle6WBuGzIFMHhiCdRUPI5WXbbAf5/Ug2UYCQ7hQdEZwfZvl0XX4JJVXiJ6WuY0hauu+48XiiPQPqaHts X-Forefront-PRVS: 02973C87BC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0401MB1214; 23:2+5ZdfA1BK+LUVjUgk4EM4rKzlzsCtQZnGMauOA?= =?us-ascii?Q?S+H3dyvOeFMIjFKvl3m0N1YohanGcWBLha8TXMCapJHnA8Fjt8RRfQP4w/BN?= =?us-ascii?Q?hUJUNBNQ/HPUWFbzyOTcy9acRt10licURLwnTuYrDP3FjzCsVRhACQIHYKkd?= =?us-ascii?Q?Fzia4tAwXSdXP9/kB/zjRAd9fY+DP81UoRVvpwizC/mPul1hUJIePYIDsBtO?= =?us-ascii?Q?/iUK5s0xs6lxMivcfrFQI3AcHmFX/lOtVS7ggRe+QQK2aYnzPFe8Mw5pRGRd?= =?us-ascii?Q?IeFI78TmexVTTgWH7CeIL/WIE+ft+sMuUEiSGHQr+Uk5P8zD4MWdpaC2kLi6?= =?us-ascii?Q?vzBCv6sYNIvfuVWY9a0m0yS3Do2FqC1qQG5/0H2p7MJMpXffxxG9gkCaWW6q?= =?us-ascii?Q?ffpc/zYkSgItKxiGy5g3jOA24EB2CUmKKHKOYVqNY8GImUrRtWUZwieoPiyu?= =?us-ascii?Q?aC5rA8KKQNfc6RUuj3RLZHDVRP8FPMCYC2e1VkllYFhwAbsbel2kd+oJnKsC?= =?us-ascii?Q?Psnb9eYVzzP2yEXwu65yVRVBcGYcCxBCv5U6gLZO1cE6pfTM3GyFPF8GULqF?= =?us-ascii?Q?YkwQHf0DMW2vfJHvZMOVwSSSwMcEl7meVvTcM1w5jCmsa8Ri8duqKDQw2RZd?= =?us-ascii?Q?/khM+G5Z0ZWDOkPbj36TZFinDcZG6o9tW2j62RMAl10wMGTF4Jgr61WSRD0K?= =?us-ascii?Q?wpCYH0h6Bl2seXolLhMatRyY85lnPk/BrgMI+5edLmA82vAL+mp2tVzdFJ30?= =?us-ascii?Q?5o45ixo2KUT2XX5arWVvLAJGbkeQ8ZXjiMbmXc1j+aUOc2IR0m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/OqzsWA==; 24:XeZbknYr1NBn6tOxibVKVGYEz/OmNyrnGz3nu3nnofzJjwL5PzuQYsq2kSLMUoUcPUAeaK+X6AK+A75AZx6xn7Tzz1y+nhnL9ZKM+h1/qp4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB1214; 7:5DVnr5piK66Uko9lj+FR6awGhJmBkxKceMLEu/z6xsjOLjoEMr52RvPzDYedxmQRovkd5/tbPblxP9fI1nS0CnN37UIFIIUQLwec2voxBOeRhwF0URSK9Cf9j+9ARy/ItoEs5RnmNUc/6C9+GX6IWWjcbXAs9z4DCcV/pC4MFSdK6YRjJGmegMAUrc4pGj00SbvcFXWDSPWYz33PlAISL0FCWk3aWzODZnvj2FH26wxZOBRyJ/vu9wvEqr3nt6wfKy61SLvg1I22XFBvXEmk3Nb+EQDxza4ZaJlErVcwpyBbxDT4E1lH8J+EJVkeJU2Sq2SCkQ9eHEclAIZ+zeKn5A==; 20:cWs0HAonbw7fwf+T52qVebFv2aFLm6YAN55F+AV9TOdFk29VfjxOw+ZKjyXuUJXlCCuC7O1V2pQl7sIPTpRDCuSIa7ajbRL5JRbloldLA0Qz+SJjNLmnc8n7VqhHtKfOxWE2FdQ6xR9p5bj0sP2Lt+Ow95qKvd+jzq/7TxO6qc8= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2017 22:51:09.5661 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0401MB1214 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Let the target core check the CMD_T_ABORTED flag instead of the SRP target driver. Hence remove the transport_check_aborted_status() call. Since state == SRPT_STATE_CMD_RSP_SENT is something that really should not happen, do not try to recover if srpt_queue_response() is called for an I/O context that is in that state. This patch is a bug fix because the srpt_abort_cmd() call is misplaced - if that function is called from srpt_queue_response() it should either be called before the command state is changed or after the response has been sent. Signed-off-by: Bart Van Assche Cc: Doug Ledford Cc: Hannes Reinecke Cc: Christoph Hellwig Cc: Andy Grover Cc: David Disseldorp Reviewed-by: Hannes Reinecke --- drivers/infiniband/ulp/srpt/ib_srpt.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 7e314c2f2071..36d15da7a395 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -2302,12 +2302,8 @@ static void srpt_queue_response(struct se_cmd *cmd) } spin_unlock_irqrestore(&ioctx->spinlock, flags); - if (unlikely(transport_check_aborted_status(&ioctx->cmd, false) - || WARN_ON_ONCE(state == SRPT_STATE_CMD_RSP_SENT))) { - atomic_inc(&ch->req_lim_delta); - srpt_abort_cmd(ioctx); + if (unlikely(WARN_ON_ONCE(state == SRPT_STATE_CMD_RSP_SENT))) return; - } /* For read commands, transfer the data to the initiator. */ if (ioctx->cmd.data_direction == DMA_FROM_DEVICE &&