From patchwork Thu May 4 22:50:54 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: 9712903 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 A24CF60387 for ; Thu, 4 May 2017 22:52:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92AB128639 for ; Thu, 4 May 2017 22:52:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8748E286A9; Thu, 4 May 2017 22:52:01 +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 0934328639 for ; Thu, 4 May 2017 22:52:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752937AbdEDWv7 (ORCPT ); Thu, 4 May 2017 18:51:59 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:46281 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752848AbdEDWvN (ORCPT ); Thu, 4 May 2017 18:51:13 -0400 X-IronPort-AV: E=Sophos;i="5.38,289,1491235200"; d="scan'208";a="117845880" Received: from mail-by2nam01lp0177.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.177]) by ob1.hgst.iphmx.com with ESMTP; 05 May 2017 06:51:11 +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=Me2WIe0Hiyivvj9KMZxvv6AndWlKMJEP/TQZUeKp+vQ=; b=ukh28uvX/gFfDPVTpuJqlTal8UfsZZ6ScIIvkKqqaY8FxHYHF3zjaANiiJ6t2GjDzikAdXpP+unBLD9kdQwHjdHSMCbK4yP8gQyAp27gwNx5l3rCe/2i7W8ekdzNFh9tMuqeqq0mt9w1TF8tH3FHcwx0hzvVv70jIYc/zWscJ9A= Received: from CO2PR04CA0090.namprd04.prod.outlook.com (10.165.94.144) by CY1PR0401MB1549.namprd04.prod.outlook.com (10.163.19.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12; Thu, 4 May 2017 22:51:10 +0000 Received: from CO1NAM04FT007.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::207) by CO2PR04CA0090.outlook.office365.com (2603:10b6:104:6::16) 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; lst.de; dkim=none (message not signed) header.d=none;lst.de; 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 CO1NAM04FT007.mail.protection.outlook.com (10.152.90.85) 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 MILHUBIP03.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 3C.D4.29323.C50BB095; Thu, 4 May 2017 15:51:08 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Thu, 4 May 2017 15:51:04 -0700 X-AuditID: 0ac94369-548749800000728b-02-590bb05cf6cb Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 46.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 , David Disseldorp Subject: [PATCH 11/19] IB/srpt: Avoid that aborting a command triggers a kernel warning Date: Thu, 4 May 2017 15:50:54 -0700 Message-ID: <20170504225102.8931-12-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+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5kW7MBu5Ig/bfMhZf/09nsXh5/gOr xYI3e9ksVq4+ymTRtvoMo0Xr0rdMDmwe97cfYfLYfbOBzeP9vqtsHuu3XGXx2Hy62uPzJrkA tigum5TUnMyy1CJ9uwSujGvn/rAWnOSv6Dhxg6WB8R5vFyMnh4SAicSxw7NYuhi5OIQEljJJ PD2+iwUkISSwlVHixExumKJ7zfsZIYo2M0ocWvWGESTBJmAk8e39TLAGEQEdiVl3X7CDFDEL 3GWUuNqwEywhLBAuMaPjA5jNIqAiMffoeuYuRg4OXgF7icVrsiAWyEuc3bKTGcTmBArvnXGf CeIIO4k1/ZvBFksILGKVODVvBthiXgFBiZMzn4DNZBaQ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EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(39860400002)(39450400003)(39840400002)(39850400002)(39400400002)(39410400002)(2980300002)(438002)(189002)(51234002)(199003)(9170700003)(81166006)(8676002)(6666003)(77096006)(305945005)(8936002)(86362001)(575784001)(54906002)(356003)(478600001)(4326008)(2950100002)(110136004)(6916009)(38730400002)(5660300001)(53936002)(50226002)(189998001)(2906002)(50466002)(47776003)(48376002)(36756003)(33646002)(1076002)(106466001)(5003940100001)(76176999)(50986999); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0401MB1549; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT007; 1:XxWVBwwdNu6YpfwpScezWTNK8z4kl7o5eAG++qCv0dI8EuX71ltc95MV63GvDiAGd47upeX78gRv+plQVvkTruQAyxrcJWSm6SWvsKP8T0VNJz4COLZ6Q8IvaN96UdTKBK9mJ+ZSKCflcxjtxU7hc5dOIxA47rV6FICwkAw7s+n43gkOAkahrRLZqUX5VXDR3XBfxO4/sCYzlOyGyphNBIyVB9Jam3AGockyOl8uJZVyE9VOGok0SD53jKHigUI2De07y4uQhLj5oz13n6rpZkxB+zDIatIje7zV3g7iEwiwzt60qMsf0OO/4xAtlTcSqbXo3w/PEbzKhKdLXCxXq6sTT2L7XJKiHKRhSsR7zCyEjqer057V7ONKjgQwxPwEizLYOhlQscGZVohr58GUrTQGNC70HUoC+atdmf7z8J8ajNEn7eM4gTt20jlvGv1gk6kO64xDIKYFBPzkiH++6oO8GXntgacpDthSjo/ZpRMMpOwVUVHh9TWvFk4v0B7rUWe+MSQb15Yd10ndFlqVgAy8qtmhxeMSznn6R+UF+5Q= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 904c1b50-d000-4d36-a7cc-08d493400ea8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR0401MB1549; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1549; 3:Cw7RyMxmkMmMjvLXS0JdWsplDU5nR8URWQub23cpF7qI1FFC0Q1jvCuArg3LbvgUXm6syBiMjxlQNPplyrRbFdaQLAXpNJ2RKZWDUj4iNVUd84HwXpu3BHaQqaNk/+DWi07yxtWkEKN60P65pOCakmuQZalsyXwvWvVSS2fOqvk6L8KmtL+6KEfWYOeXUDdk33UiLonce94njBmYvKm1hm7kDv3SAsELpuAbTzZH1sdH2hXApB8G0DpX8cQjVXHxmohSefgNzkGGK3XgD5/aGPcjYubvLXEp8aVk+/OQVpkaHg25vRgmUzBMRh2hooFMzpbxn5d7RiQrwYmBd9JH+J1wYPgT82md30rUKbM/+8RPnHJn+6tzxLtbrpSxLpzu3Y2nsV7iF+mqxvGJvgs/Aid159IjpeSWipX+udOG8GiKrtP3u5+VESBXGvrvt3XP3NAFrmdFaE1EqnnOVPQLfvkYlLw6hJKlMN0jgjVGGvLAIPbyrhyU8m/eUGwRRIyn X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1549; 25:Jsl5mvGe2j5KsiifuWNAkrYBV3mUndoGMZYw09y7ulYdT6xiY6ke4MHXLw9rI8D3h+NQM777sBeUcdJB5KqTuSYY+Okd3vfti9Q0O6ifVF222jPTG0KE5sto+w2Ekz8r2VWDpJIkf9CqXdlrg6X0/3RAWSNGsMHEdzY5JnXbZOO26lt8/CqmMWqmbSpumOTtfCaK2R2rNZsgbGf8iRKhBogYDF2dZdLOtN6qqM0rwXEAPHSd4D54oe1LkJHEEUhWCSxUeGxqYhMWSM3zBiULLcqAFlDE/Fkd0M2++cL1lbcVN4XQmex7suOwc5YT2iR3h5S3jIRFT9Dez7OGH/SVMpzihUi+b+261o2Y3ZS3ERlkik3zlOScnpWjkR2Ob+jCuxEpElngSt9Bq3CL/MBsVYh7lGrj1zMg+dqIToWw21pIuZ3HpFj7EBcnWdS+9wMtqWMMtQ/9FeXSShqCJUon7g==; 31:sFudvNGRRqW8UGrJKq5njH3znly2dc8Hu1VZYd0em3zufJ2rM5mzeciu+lx/1v8/cqb5059nghS/blHnZVg/85REbx0tIDgj+sV9qthvrNvEY4uGEa3UUbb1fJ4jmgzrEZ7VfdNEpqkZqYdQ94miCh21XW7kU6S2hYSaSuF1J4qyFtoBGRX4EWFHiwnXGiPtch2MfccnCNy4QJf72J3KJCt6quqhkeGNhlAB+N1H9MBBiBYmkGa5nS5f5f0Rq0r/QuOQZcq5aq4ATrFKHeUMYA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1549; 20:bA5fRI5lMVGnBQmyFcS9rVaZjexndxjjRojoGjyVqD0ufW9XX4oJozZkOILyb928rK8WdVBduObCnm4JHoN5btef/faP1dvSDVCJS91kNXYi0HSMsULUJLrY88e6wvwyJI3rcAh0ISykHu5bUvE8Dik3DStL33efvJb4Paul8xqL1pfNbyuSgjvSmBIFZJoOWSMUfOMwxkWc47n4oeXy7DvpM3DPKsZhKktI6KB9054JcDQuKxLjHaVq8z43jyqMyYkT52+L9X0m3/SsKLYMndD+jzamS/b82ffOIxEqbrm4e+5CGMF1xOItJ36WYU5ffaWaql/XDNwH8hk0HL5yywHl4ohNHSqjXdVyXP7urZCrRXn2t01FREK6gdcg47foyRjhVnX4/7V6w5lEQEiTLBp9JajZM90svlqgC8nvYWvVeglPQ3VNNjuSBMvxoCDyStQSJKkgRyc9Lg3ofup+h7KiM9XwfrBL0Mjwz7efV/FJiLbg4W9y7PWvJTqrKcV+ 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)(5005006)(8121501046)(13016025)(13018025)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(6072148); SRVR:CY1PR0401MB1549; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0401MB1549; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1549; 4:vvLCHvZ8QHRD0EvpFaCkkvTSFe/h1XEiFJC/HGse+nQCufyZPrEgW2l+tgCu6vV2/C5Em+zBjlSTgZJzqdiSWIIbKJEzdZKFK03OA9Mkrr7TaggOkO6yOHCZrs9C2nESPVA9TXQkZwHuvabENT0C1BWocAwVGb9b3u3YTNbveg1X/rYGH0LfQdj5J3Diq63LtgoYTEoCeNHHU9+calHpLaYfpKce1YPyXtJEU9xpr+EyPt6PKFytcV53mWi3izf4EP3DUXuiEhsMBbgXhkkawW/fyUE6v6ihUs7D/TLgBh3+Mgf7EQzEEAxx1N6UrltnsxFu2i5md6YLfZVzHwU5ENI7C6mlHX4DrUnPgJitnhBHBv4p6WnMhH/mtj/UD2toMQTXVkY4GSj5TtVDIZ1KgE4Gq/qBojKU7R5fuCWWAzWp94vVaVpQIkcnJB8wu7x16qB3R/1CwdIbUcEAnKPdGqG/BoR3eMV88ExiXLiqt4OOqxuq8qgDyJi4nr3PWvQcLpsiUTq7qhJ95+JMO/m+A+kZvwhD8/dRTxIXd0++7ya74zkJHSErBd7FJKIltDoegsLgtEPHTWC/jxKYeLNg68ZXHCIlyEoN4sFa+/Bk3tW672Jow/qzz1MzSxRjYXFdT7p2FiXk6tG8490e8b8r5zBIxVg79o5d4sFuShB4FdGw1WVq9gpWTjLPzR51mMs5cH9dRHK3Iw1yW1Etnlfl+flPi03PwqiPw88OxhR+I0Ws3PSVIqndc59Y3qSBfIlTxH1wIBV3Sw9o4RUgudOKCvtpA7dz9OzyQflVwwcj5MmCwT2VU9gwgYrpg3MgxtM7f46fuhXAtgO9DvT6zzY1ImAuQnu+wBfDXsLkN3D3oaJyZkXbPb0wr+gQpX5GIMAd X-Forefront-PRVS: 02973C87BC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB1549; 23:v1TdN0uNGDpGUDcxEK0h5oNDkLkd7ivKMIVHmyH?= =?us-ascii?Q?2dscpGzuYwbN2YD6RAks32ydOCiT4zNLQeA8OM6f50pNU194LMScVvML5vq3?= =?us-ascii?Q?I9yImD/YJDf4em/2jXA7a7PD2E7DTo9S1dJzIkNQDFyOUNCKV5d0mbT+wece?= =?us-ascii?Q?Ayb3eqTRU/KwCENvAcLIWi7KhoFC5n93ixou6BRd8Hsg0NY09XKNvevTiPxF?= =?us-ascii?Q?XRh+HgKnMqEpY7c3R+V2X/ZqDXOvgh9oyLsotUGf8NAV3R37vSLORFZBFP8X?= =?us-ascii?Q?dzG14S30Ad3UciIPxKeDVn1+tU2RCKEvUc5byXUlu2RLegpkYvvhgpxgkf5Q?= =?us-ascii?Q?6mKxa1Gy4Rt41jz9yzdcB848ZT2w4gsNnqVr5X6sNY/KmXD1nNkMJ9xXZdP3?= =?us-ascii?Q?AnghY8uIg4NdoGlykcpg80TqLZRqrsZvfjQjrhMPJK0BFd+gISRB+qMm1yVr?= =?us-ascii?Q?rv1K53o53f+t/fkt/hRf94d62HJ+OMYzPjUe3XV41qg6lN1gHSnocGi3rFc6?= =?us-ascii?Q?DWltg9mQoeSlO+ifWy7y8lbOWdFkrMsHeeqUXNKYlwoa1z1wKY8u7fVBtZiE?= =?us-ascii?Q?4qEKcZ+bspuhGC3+4LRSqlZQMeNm70JOwvohmC4greeA366eRpV4h2noQc2r?= =?us-ascii?Q?MMfK+T7qDVd9Ku5CGOb28arM7dtzqjAGKMpVgrQZs00tpYkhbCPMY4svIJAK?= =?us-ascii?Q?emX5+zciUc+3oG+0G5QAidxKXALppQVIPG2uJMRDSHDb6qPi7/+oTJ4A4m8x?= =?us-ascii?Q?VuUpm/Agd7JVAFXxO1164QUf1MONdltECLFP/qORbI9MtCI4JARPZ5dFIkXm?= =?us-ascii?Q?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OtZigNw2sSCDHY4fhIuY1gP3PRAuPsLryA==; 24:Oh5cpPRg+GFuUzOQY/Wumc6RTsZ6RtdB9TvbYnQu3OLmXFLOCVdNhFIatn4Ic1y2IOfSLWPvJo9GLdDFM/ABSnhVIxdCtSHWKnsBA/3ZCew= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1549; 7:odAUQ+mdWxCBi/HgSGWMyYEOIIee/ClWvgRTMuWVSLRhsoIIAubE0VrQykU3HdRXzPM6bRewSJWb+4EzR1LIqD0JY566u6OIXWeQ3mmiuG7OGfNP4ZQUj2dcrCRJG5shfK8eJkcw1CBTIqvAlId8OdwhMi0vgBLmjfW8a57y+iR9CxynTpqQnOqx6is1BLZ4Lk5FuAIAKfzcMOZN86Wm3QS2hlO8bo6orkcfMYG8sgHpYKSznmi/CH+nKzJ1Xw5jonMoIVzUC7coMOOxb7ei4uE6WA9CdODfAnFWlUpODMQxrOSzvaO7UVuN2KYf6P5UVEPDgr5gw/hWylcb0Ryo6A==; 20:qMmVCT20wNweDwFYZ8XtL9dm0YHhM4EdiJxB7HOLwqmzurczTXWtC9fdzK9G72EeFCfe7ptBiaCd2qnFaLY5TV7Pjh81g7n5I2SH0LLULGHxBG1jvaIaFfbXeKnLO/mZIxMkkKiYpFbvwLCveGRhEjHjQtzXUFcIcARuYJrT6ms= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2017 22:51:09.5612 (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: CY1PR0401MB1549 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 Avoid that the following warning is triggered: WARNING: CPU: 10 PID: 166 at ../drivers/infiniband/ulp/srpt/ib_srpt.c:2674 srpt_release_cmd+0x139/0x140 [ib_srpt] CPU: 10 PID: 166 Comm: kworker/u24:8 Not tainted 4.9.4-1-default #1 Workqueue: tmr-fileio target_tmr_work [target_core_mod] Call Trace: [] dump_stack+0x63/0x83 [] __warn+0xcb/0xf0 [] warn_slowpath_null+0x1d/0x20 [] srpt_release_cmd+0x139/0x140 [ib_srpt] [] target_release_cmd_kref+0xb7/0x120 [target_core_mod] [] target_put_sess_cmd+0x2f/0x60 [target_core_mod] [] core_tmr_lun_reset+0x340/0x790 [target_core_mod] [] target_tmr_work+0xe6/0x140 [target_core_mod] [] process_one_work+0x1f3/0x4d0 [] worker_thread+0x48/0x4e0 [] ? process_one_work+0x4d0/0x4d0 [] kthread+0xca/0xe0 [] ? kthread_park+0x60/0x60 [] ret_from_fork+0x25/0x30 Signed-off-by: Bart Van Assche Cc: Doug Ledford Cc: Hannes Reinecke Cc: Christoph Hellwig Cc: David Disseldorp Reviewed-by: Hannes Reinecke --- drivers/infiniband/ulp/srpt/ib_srpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 36d15da7a395..ee026b6b4f0d 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -2685,7 +2685,8 @@ static void srpt_release_cmd(struct se_cmd *se_cmd) struct srpt_rdma_ch *ch = ioctx->ch; unsigned long flags; - WARN_ON(ioctx->state != SRPT_STATE_DONE); + WARN_ON_ONCE(ioctx->state != SRPT_STATE_DONE && + !(ioctx->cmd.transport_state & CMD_T_ABORTED)); if (ioctx->n_rw_ctx) { srpt_free_rw_ctxs(ch, ioctx);