From patchwork Thu May 4 22:50:55 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: 9712863 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 AAC0E60387 for ; Thu, 4 May 2017 22:51:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CF8F28639 for ; Thu, 4 May 2017 22:51:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90011286A9; Thu, 4 May 2017 22:51:31 +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 CCCB228639 for ; Thu, 4 May 2017 22:51:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753013AbdEDWv3 (ORCPT ); Thu, 4 May 2017 18:51:29 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:23392 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752979AbdEDWvP (ORCPT ); Thu, 4 May 2017 18:51:15 -0400 X-IronPort-AV: E=Sophos;i="5.38,289,1491235200"; d="scan'208";a="111976839" Received: from mail-cys01nam02lp0056.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.56]) by ob1.hgst.iphmx.com with ESMTP; 05 May 2017 06:57:17 +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=LDq31cICp0WQKuCpacC9+OaYy0KLQl9vQ+0jszMqEvA=; b=dBIMUY58C7ZbfAXzpGjZiGctqfdpLN6Wcha5XyileexFxtsB2R1KAoKOBIYCgMhzdDWp06KoeC6tCl+qfjpnG0Z9Hg7x91xEnL6N2lnmKUCAG5IZmc+sjJ31pjl0RJcMutMphtBASPexn+gdA7UiegnaTNddqGLFWI0fHHDYlAI= Received: from BLUPR0401CA0029.namprd04.prod.outlook.com (10.162.114.167) by BN3PR0401MB1543.namprd04.prod.outlook.com (10.163.38.152) 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:11 +0000 Received: from BN3NAM04FT035.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::200) by BLUPR0401CA0029.outlook.office365.com (2a01:111:e400:525a::39) 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:11 +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 BN3NAM04FT035.mail.protection.outlook.com (10.152.92.151) 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 3D.D4.29323.C50BB095; Thu, 4 May 2017 15:51:08 -0700 (PDT) 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; Thu, 4 May 2017 15:51:03 -0700 X-AuditID: 0ac94369-548749800000728b-05-590bb05c19c6 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id D6.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 12/19] IB/srpt: Fix handling of command / TMF submission failure Date: Thu, 4 May 2017 15:50:55 -0700 Message-ID: <20170504225102.8931-13-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+NgFnrPLMWRmVeSWpSXmKPExsXCddJ5kW7MBu5Ig1sHtS32z3rGZPH1/3QW i5fnP7BaLHizl81i5eqjTBZtq88wWrQufcvkwO5xf/sRJo/dNxvYPN7vu8rmsX7LVRaPzaer PT5vkgtgi+KySUnNySxLLdK3S+DKOPG1i6ngNl/FhU/bGBsY23m6GDk4JARMJJY/seti5OIQ EljKJHH78G02CGc7o8Sc0zOYuxg5wYqefXjIDJHYzCjxctsjdpAEm4CRxLf3M1lAbBEBHYlZ d1+wgxQxC/xnlNj+7QkbSEJYIEDi/N2XYJNYBFQk2p9sBrN5Bewlviw5wg6xQV7i7JadYHFO oPjeGfeZQGwhATuJNf2bGUGGSgisY5X4vnkJK0SzoMTJ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 X-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)(39840400002)(39410400002)(39400400002)(39380400002)(39860400002)(39850400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(77096006)(8936002)(1076002)(2906002)(50466002)(478600001)(305945005)(356003)(50226002)(81166006)(8676002)(5003940100001)(50986999)(33646002)(76176999)(48376002)(4326008)(189998001)(54906002)(106466001)(36756003)(86362001)(53936002)(575784001)(2950100002)(5660300001)(47776003)(6666003)(6916009)(38730400002)(110136004)(21314002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0401MB1543; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT035; 1:VwfuflYLfSLUGliC4g8bzUQUHT+EIo5wJtzDh0rmiWw2VGbINJ95kBo3PN59B2ZKe5LD5qKbwtCec/db8mwA4pAVr8ogoCJSq5lUAotF5MAcE4Xpvn/bSPHllL8iViS6gkmMSTg5yK10WAibQAHMqS5VivG/yFQ9M9OVvaU0OvHxbK58DJ5HAInrPQ9Z/PwJzvOE/pbVaqj/2nDY4RcpaYf+Ilp5vms62/SZuwYuUpuydXkkD3gH7H7aMspUYAw1SAu31HpBJmeeMZsjL9yRJgn6/HkaZiffzHDyq4XpFlPtWWNgbPpFPRPbpFw4UX5zYcKoGlPegoUMJScOyHyFVdbX+h5LfaIzJsMsx4hAMiSrbLrwNEmpw57nGbZLFBHxKfJPGwEOm5UtQrokEdilQ0S2zoU1+lAuUpDDHc/tZgqqhInDaRIlaaASc+NDYIKrcQSp7JeyBjlnvGCIsRMXS8+A5FNB2VyDZnQg8/5hmwSgzBtuTc3IiYCm9iLACTXM0Vn/3RjNBhGrYhJeX0QGFxkTJDjqp0jpdWaXKtb8QMg= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f997876-b40a-4f76-8b1d-08d493400efb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN3PR0401MB1543; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1543; 3:b1PyfafOKkTktGIO/DJX8xmaALkYm5UMPedCphmTtGblqU5iU86XoHJTX28hKQEXT7w0nU7iBKCa1nz1oyEjBMA7TXfrBN0g1hlh8OpDTNDf8RV9v+gedZ1sb76MKoLzjaIUv9lAgdnR2/932BvQnbAOX9qDhiPUPv4yaLTiyS+E6suGaopzW/r2jJvPj4zs/OdsFsPvPIiLQwRDkRWFkblt8FBUYp/PsXglJyNwp2J789E9HlHxwccqnzRYp/frl8jEce8BRgaiiCC0n4EjtBI9W03289WS3V/64EWcgCZKU+4wFHUYgeZTYRfR3DFvU4Q6pN8xrqG1RFx5zySLFIG8LuLelvlcyxHC8+Yz6yZvBCigGxQQl9neSKVWpzdiVUhXPvEsjLUFpaoawWj3pJyn/EMNv9HhDvhgWxzPE0+wReIVC4Ht6AinPtLLhFJyijiMEtzO/wlhbXWMdEc2O3ERuszWz5BX7Jnvzm52qXdWSVF7h7019B3KJbSfu1+AAlZUMHcMWfcXqvnN+EpXOw== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1543; 25:K18NVugkm553mlehNX7K9ZdF40pkmnfYKDAi2uWE2xlrzmreToYTEQ9O4JhEzngCO/Ssb2pFj12q66Lcctcw4kgEqZGbuuCZ6Pf+Vu7Gowq+NvDQY9JElgZFH2Cxe0ORZW+CcD+reHPcCoMsz1bnapgQrUwPpW0k1AANv+TiB2r47/8Mz/4ImnqHS51P0mQdJzTHvvNsVJAA5d9IqCYBAwO25rMuVJTvlf5rlO7fS9EkeRRszgdguYDUah+Oiv3XVYwg3pzItyqoewd0RJ2phJ2hJHuvNoEF/GkrjQG0DicPZXdkfCOm5YGiv1qo8oivo6MpBmYs5zxqe324+/P4Fa6tQBTaKpIIAsY2mmxJMJjLvNLesrYQyqR9HavRaoRnkLZXb7VxjzgoT9nKMdWLbNU4FGOyftIpd+puoMMzMwuR0Y6F8YXbmI0A+HUteJnN1Pqs4ND48b8d8xfw74pnXw==; 31:hg0OruzI2O0ERO9OpWnW6aYBaBM9P8AsPCK0zEktxuWHKsLorDEpUBRR6DP+f/G37n2RgjAUXVQsJQ57PHwMwSyk1tvOz+9BOetSq7c+OsJyV96uL9DeUPyngleMv53fi07WqM/wHIDIb8gaKyx8WEMmMWspcyEdxclKb0aR/WBooci1T9Bq/WMOlsz4KZY3Fb6X+GGPg5TUACX7F0K3N1jqC/vrfZCqbrIDt1LqdZg1LU/2KF+ieNYbBu4P81/JEolcjSScRZ10FlKJRiY0DA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1543; 20:0cBI1vCb9DbvBYrboFj9TLAEtXjVVaJy7gLMUzlkg5ZgtqZn+4crSeDK0Tqv20jeT/Pajw0kKyR573dryGXEv0oXTMcpXh3hpNp3KM0dpafVXBU2qsxCCMIc+rHftakJDkIKmxaQQax/XZJlYw6GPR65/rjZNmaBGCvUMaNXku5rOvQ/Yaenqpz8PNcMZz6ryhRNXLF2tBXNGiXD4wUSKnc9B6GttJsgnePpjxPXjS3VJKF+6agZlFhCP5KOtYUxwb0l/5SZeonvznTbvM2t9DuG7HoPk523ImP1jjGc/iikvpPtpHEOH2yDHbaO6j2npLFMCeU61fD5Aj+EPV2lpU0T8X4Gnh+XB3QGt51n8gTzeynu65xit4H98/6JpI6EKMBKPlxOwEp71ZiW5fiiPquiX+ZyyWoE7rYLMsIn/oYFTRw7WBcdqY2PYeR/6p5rgq+O6rc1Gnzp4IqXWvfKmEK7/aR9/+8lUHwEbE4vPkMhyIdzOzEi1vC7VhFarOca 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)(13018025)(13016025)(5005006)(8121501046)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148); SRVR:BN3PR0401MB1543; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0401MB1543; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1543; 4:qXhiKAlPTqAJkRL2peis3BPCSXNo8mQI1fRFyj4Ofhz37jE+Dt4pbc7hpL4NG532CzoI8G46+bTnpuZmYsRiseYsBnDOphbJFTTNOsDUMYYFLsAKVMJ8D69ZUOMz+lTulprAiBymaj3eSicNAhEBLt5e70iYQszsaybkDEG8gjvL2oxNcHl/LiCzc8hXynqnn7XNuQlPDfRf20HgVRRBrXQ0u/gDgH9ai/GTFN98ppcbag3pmzv9+lyaqLUrYBn4/NTmZbpywsp5u7jpM5/6hYIEMfEhtcmefNxrvZmfKjUpLQ79SgQ4Mv7xalCAEVXZgXgttDRQspNGIohYSs4TMjSaHYtHEk3JKYANgudLf59oe4+zsmEqs1ft6hK775qjyXBZUVo/sV+e9r6qwHoLAXTolNTPDGQKhqCJVJPJwwNAHpax71noiEsLZq2oPwG6C5aiJyRt9AGt79vH9FK6SirZAPjPKkZcjwICQC47BMXeCWK9QSIQPXQ4jqz5emJqLIiMw5LPHHwafUXvraeUEE+L2nihQTOv3S7tT89yjrfzeT649PGcxk0dvmrmpoRil4A71qNQdythnh4oYfGz7irRzH+RSgzCYkFk0NFl8ixiWJ0aUbKvJ0DWduF9Ujp6nGQe6DlQdvh3UT3GGPWmTRkDjJjCnDkq1d8bzR1crGlZftc7cG+FthgNz6lTDctv72ZuwfP5E784gSrGYGOajFGbLBjqBJZ64GF2eNzYEtVfxDAXXmTMNEFH6+mYFeLbFIb+84JipHVwwN7HVzwb5XZqeWLyV2ZAXUkRLMJKQk7MiMTWhS79jdFwClP01mSyxm6pGjar9XsgVAYzxn9ZgnfBnC5UCZl9VBpMPJMg7VPRc4ksN8RxbsZn4/KAhZcc X-Forefront-PRVS: 02973C87BC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0401MB1543; 23:ZSD+aBHj5ji8tWBmT5JQYWqSdZbVCqbCB5BrlnU?= =?us-ascii?Q?s5yUz83Uj+SgY4+sFOjtK33GcUSPOb0B0njhbcwAD57gGv2vNBiG9YKtzRVa?= =?us-ascii?Q?QrZ1KPOwG2njM3cgPpXgogvWDG1h/IXXKeR7RsYCoksM/gTKsSVJi0EBfO3+?= =?us-ascii?Q?pH6JZto3dkEwnEJ9DK1hA9yhqRSoBI1DJmDwYauUwTQmSdsY20K+ELfolxOH?= =?us-ascii?Q?pW9ZxQWFXb4kjPSKURUIio9l5JDaRRZYKuVmROTPi0Ue/Y9jT57Fh2sKp+ot?= =?us-ascii?Q?NzA//f6E1iaT3FD1MZKdEV0IBmU+s4/J8lwKxY8B7vKG4Kze6ob208B/MalO?= =?us-ascii?Q?oLOCHMoeHbMgL4SWbjr9vzFZR6v6SGyL5PWrWYXLtbY9oCxsFWwnMFixRLEx?= =?us-ascii?Q?mhFQioDlb6YICP0HGm6+DQcUzNbHU0eKiGwDybeupUFOI6S88XBTnMliwr/L?= =?us-ascii?Q?4diEBk4rrjbe4FeIjEHtHvxU99eEhoqrSVX6Lz90PSHhaPX2KUeJSCodI0HD?= =?us-ascii?Q?j4ePjqcAffmNGAgde5eQWiNnRUSVXliAMMmEJFj8zqWxuMK9rm3Jj5HrueEI?= =?us-ascii?Q?cna7SbAmWTGBBXD7kHjmP2fca40XWFOyGNHygUUvXd2g4qGA81L8NBxtw+8b?= =?us-ascii?Q?TS4ykuIjvJLs05rlQUhwGNDt1yTLWj3YABkEOzEznd5MC4WxAR5wUmB6DD5/?= =?us-ascii?Q?ht7ZJUrxope7aDB2NdcDLgqghS1xLaUstBEvzJNBQURR/SX4hcaeFVHHdoq5?= =?us-ascii?Q?SikBq4n/p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aCEljNrvC9bRasvaWLdNKPIaLJ9lMhgjo/KCWWIsSw5g79zSGvUc4DJzX5yDvO+yD14y4K/cUJEQXseHrOkOfFGG0pFTwgWRJSR7u5cwa5BjVamdZc5iVg==; 24:OMkjrJrPzSEcFE4OP01+/7zu6U+MBFtkzj4xQe06gDOK3wwFL9xlkWFWo+xVcgyPeAWUKQFLkCYPeMNgNG+0HoARd4NZENIyAxE3HGsGmNM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1543; 7:/aHAEavirp2NGVWAbeeBUeMWO2qkEAJSNhaURDLo5DlZkMXXyu3rsuWrKgzdxLExXZIlXuRPszpTtqzpgnLba3bD1+eLsEq0Vi5LwyA/Rcwiyrw6qNT91IlsbdFqoGJ5imA41lTdHXcYtEh07wWvnty/YIpAMC41cTuG6lJKFcyR4Z9ECnOG652TrDnFj9UN77GSgnLQpl7lIFM+9pvqhAJHVmrQfnUfdN2gW2WxzNC4fCf9KqQRnVruLQNDSkNh5Q5zoL/0IrYS4Syy3mg04GUi1Ccah06pSp85MJ0k7GSctiTv8RHuuRSawX2v/emdKsdFPLAL0FAvCX0JnMaMqw==; 20:IE7JUreFxYNS/j7bve0+7j2fIA/GzJPzfspC/wupx00CHz+H0P9BFaCg1GIj4SnSA6PkP1fib1U23coznjyifWIohBd1p3WfBIs1GiV+AWRtsY3I2T70PSi+YyBddGxuUGRmelWP1cp5u5JiGo0vtfQHU8Vaky5VumO6AurCLL4= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2017 22:51:09.8076 (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: BN3PR0401MB1543 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 If submitting an SRP IU to the target core fails, send the SCSI response "BUSY" to the initiator instead of not sending any response. If submitting a TMF to the target core fails, send the "FUNCTION REJECTED" response to the initiator. 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 | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index ee026b6b4f0d..317534cd2a64 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -1376,7 +1376,7 @@ static void srpt_handle_cmd(struct srpt_rdma_ch *ch, pr_err("0x%llx: parsing SRP descriptor table failed.\n", srp_cmd->tag); } - goto release_ioctx; + goto busy; } rc = target_submit_cmd_map_sgls(cmd, ch->sess, srp_cmd->cdb, @@ -1387,13 +1387,12 @@ static void srpt_handle_cmd(struct srpt_rdma_ch *ch, if (rc != 0) { pr_debug("target_submit_cmd() returned %d for tag %#llx\n", rc, srp_cmd->tag); - goto release_ioctx; + goto busy; } return; -release_ioctx: - send_ioctx->state = SRPT_STATE_DONE; - srpt_release_cmd(cmd); +busy: + target_send_busy(cmd); } static int srp_tmr_to_tcm(int fn) @@ -1450,11 +1449,9 @@ static void srpt_handle_tsk_mgmt(struct srpt_rdma_ch *ch, TARGET_SCF_ACK_KREF); if (rc != 0) { send_ioctx->cmd.se_tmr_req->response = TMR_FUNCTION_REJECTED; - goto fail; + cmd->se_tfo->queue_tm_rsp(cmd); } return; -fail: - transport_send_check_condition_and_sense(cmd, 0, 0); // XXX: } /**