Message ID | 20170523234854.21452-14-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
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 397646037F for <patchwork-target-devel@patchwork.kernel.org>; Tue, 23 May 2017 23:49:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CFDC28818 for <patchwork-target-devel@patchwork.kernel.org>; Tue, 23 May 2017 23:49:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21D8B2885B; Tue, 23 May 2017 23:49:29 +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 9305D28818 for <patchwork-target-devel@patchwork.kernel.org>; Tue, 23 May 2017 23:49:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968710AbdEWXt1 (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Tue, 23 May 2017 19:49:27 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:4114 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765539AbdEWXtJ (ORCPT <rfc822;target-devel@vger.kernel.org>); Tue, 23 May 2017 19:49:09 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="116862543" Received: from mail-by2nam03lp0051.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.51]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 08:07:36 +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=9NbAONNCAIAbIcdDGNSRvUBBbFk18W1Cn2jZBKki4bo=; b=nzISB5gOyP4wK4ESfMHQoSbCyI/udFOyASOsSpNUdSmNe6KbT2SMxzH0gp+mzA8PkvV6VUbxcaIgqL8IhxxRyzklOYojl3qb/6E3YaDm+qbGrRWhpCBq2q/4xgJuJUCV8idEbQnFf2W/VCHYczga855/HgbR01a3MfYJCOoECJc= Received: from DM5PR04CA0043.namprd04.prod.outlook.com (10.171.152.157) by BN6PR04MB0354.namprd04.prod.outlook.com (10.173.198.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Tue, 23 May 2017 23:49:05 +0000 Received: from BN3NAM04FT057.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::206) by DM5PR04CA0043.outlook.office365.com (2603:10b6:3:12b::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14 via Frontend Transport; Tue, 23 May 2017 23:49:05 +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 BN3NAM04FT057.mail.protection.outlook.com (10.152.93.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1075.5 via Frontend Transport; Tue, 23 May 2017 23:49:04 +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 6D.64.19026.E6AC4295; Tue, 23 May 2017 16:49:02 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 23 May 2017 16:48:58 -0700 X-AuditID: 0ac94371-41ba798000004a52-09-5924ca6e4df3 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 5C.F2.18148.A6AC4295; Tue, 23 May 2017 16:48:58 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Nicholas Bellinger <nab@linux-iscsi.org> CC: <target-devel@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com>, Doug Ledford <dledford@redhat.com>, "Christoph Hellwig" <hch@lst.de>, Andy Grover <agrover@redhat.com>, David Disseldorp <ddiss@suse.de> Subject: [PATCH 13/33] IB/srpt: Fix handling of command / TMF submission failure Date: Tue, 23 May 2017 16:48:34 -0700 Message-ID: <20170523234854.21452-14-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170523234854.21452-1-bart.vanassche@sandisk.com> References: <20170523234854.21452-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsXCddJ5kW7eKZVIg60fzS32z3rGZPH1/3QW i5fnP7BarFx9lMmibfUZRovWpW+ZHNg87m8/wuSx+2YDm8f7fVfZPDafrvb4vEkugDWKyyYl NSezLLVI3y6BK+Pr9nVsBU/4Ktra/rM1ME7g6WLk5JAQMJHoWvmfDcQWEljKJHHyWEAXIxeQ vY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Fplum+Lo22 wotJW0vECtu1hdyCC3iSch6uY3oxOWynx/Hsvk8zWebZ7fsUsuq78wbnb0tOKE84ZOkwNUX4 pMPPiZcnG58LVGIpzkg01GIuKk4EAMGErYDDAQAA 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:(10019020)(6009001)(39840400002)(39850400002)(39450400003)(39410400002)(39860400002)(39400400002)(2980300002)(438002)(199003)(189002)(9170700003)(76176999)(50986999)(47776003)(53936002)(5003940100001)(8936002)(6916009)(478600001)(8676002)(1076002)(305945005)(81166006)(38730400002)(110136004)(4326008)(5660300001)(33646002)(2950100002)(50466002)(2906002)(48376002)(54906002)(50226002)(106466001)(77096006)(72206003)(36756003)(356003)(6666003)(86362001)(189998001)(21314002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR04MB0354; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT057; 1:5JgPmfaEYA80Mi+Bej5hTRUMHHWmC9fIjW5hyt26MurzhXRCYRFEai84Zs25ZRcsgChNJIL3b9JLdpA7bf9Y+lEooFlOFdX1ygT5XmGtXbOfB+t6Cu5r+DOLZtpgfq5CAdR0Hpey6I87Vpo6Hc7DIZMu5Po7QzZEnSgfpeOuqWdbeF/5vVrE31eI2dj7EvjAZEnY9BXMVqyM/8wOmbxOgtFHSrdCCiLs1Ilu/pfE3d1wUFa72ORoZ8Vb7oJwcuGGVhP1EuXkbxHF3wh7zrOzgKG6zGfdMwJHPe4TOKE2wimCd2xPgSda8zOwQnEukdvWFGsQGrF6LRYIHm1VSkc8YxT70++9AONMzNY9bqvzBE6PPHxlWNz5XA3tiPJXct2hOBjhEZooSbnRfPx8N/YSjIztb240cnlgGD3dQhDZlpgZppzoX9Xfi+CW2IFQ6qQ6tcsMLbb2+0J8U3TazTnjTPJDT3Rf5JvS4rg58ioXl3z8baWA93TAsXFEwtDha7xxy9b8Da4QsbBiMYi70vUtdmu/Bjtseg6sQgx1dmrkT28= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN6PR04MB0354: X-MS-Office365-Filtering-Correlation-Id: 2431f819-0c3b-4a31-f5c6-08d4a2364ba1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN6PR04MB0354; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 3:AiciSh4jL4IuoB5+X+e9HGixnwnlTOmaMtsnm327gxyE4t5ABaAsR1qVy2V04s/XtFwAPmTvPWq9PxVpDxu1DIH/wpOrUPZOc//Z13j9rWT8oEVAfuG2cW/QPAkeRotIsJfc227bNpPRR6BYIA+Pco05C47JXuauJ1Ys/fJH4N/jUhcaXfKcLWOBmSQwAMHcBwtFbfCvuzK0jS8jTyq1r6ngv8Mo3J4uBF4TxAAdOv4k3O+fclMMRMzVNH+I+mb5Y2v/e6qPrm3oijKq/m2oTLXgwC4h+SGMEXtQhk+QFag75SuJHmAz2qwcVbQLPrvCPIWWQ3ArzfYf1aW7vXL0kPUGeSvEV2h44DFeUFr5gmvCXn0hXk2mI0HnHv679aNDYPRO13ShBUX2HCpgyahSm/ojJu1RszL0wPyW7nYc34rDbA5x8pX7PB9Xi2O0v3yhJnt6udMJNyJi3oYzNs3Mme45SjN/1CxEl5KKMQzpdLAeuQuH6OGYP2mIPvUoP4XO X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 25:/NRpCjvT3xJ7/sxpJDoaDmp0hhb9UIGCyFyYjNjjmQZdaf6UKZ48stC4UfRcnRzDQR35QuzVlYUqOCjYAe4YUIfWhgDSRAh7TB6R6Kuf6HBY0AHcIAl0Lp49VHFYr0gYaEKl8/H78FNLfExBD1+4xtXaadGeredERH65+YLPj+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3VnzUU5JWqnoNUYXoEcKii6TRv9TS1RxufngkscTUj7hYGshjzGAqEcVYIZoZd3fFDP6J7rXyMcFPCAN8YRX4GD X-Microsoft-Antispam-PRVS: <BN6PR04MB03549B6D4CF1B972ADBF5B3A81F90@BN6PR04MB0354.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13016025)(8121501046)(5005006)(13018025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148); SRVR:BN6PR04MB0354; BCL:0; PCL:0; RULEID:; SRVR:BN6PR04MB0354; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 4:22KG1TgoKaSL+IyWdX37U0jv35RQLSm+XuHP/ioFmYn5+KvnusLuzBdqtKKgk7Nbqr6Yl4l6a75RHuhIId9bLyUYklBUdKWgKSFe48LOiWB1V8+9kcir7WeW5fdGyaZslkbhavBq/J+fqku83UBGNnDlNBOb6w51k0BLOmYiPFwWpVUdg2dfbXQrF6V2FWpvUrt3q3c0OyFDhVNlpaPdBrr1cGMch6xYmrXnF5NRtHMNXnQsV/9zBCge5JzVxqYGt5mQZs6acw8MqQxTl29iD4JD0UbCJvbBMyIE75fTKu1NZq+5/FNoYFq23EvbygYxA/X6w5PsnQpYZd7+uCYSfVRtNcuhWLnXTSqnD10PZtQNwPx0OEPxM8DPHW8oit0fZRRTkv208fI3HmQKpFZiU/WEqNJmUqwCwBj6Yxjv6WmItGT1A6yrRn+Pn1Z4kgSO1dgsIxsUIMPaPpy6b1eyP1DUgEyHF4MB5TrbAp48GsDyplTEoWHSXej6yVRp5PZN/ixg3UVOAnltkq8MtR3iKOYwgiIDRlpU/+Y57PlQIjZNGDHDgrd39HSPXnq4ynm/xgmaWsSzucqbocwry0RORKyqSHOXYoI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c6BthqUnEqjrQqwQJLYVJsxjrdQnAjjWuMxheJQnhukuwOe2pDt/5Y/t5ZLM6Zt+u7qjSJd0I8/VzQX6zO1nKD9oKbwzS+BNlFzCGKVA/zEqfejr6w4mrvEeaIQpVWrYWxFGskAGffQY8lSltLYjxhXEGVoU36cVx8p8SpnOvBKqrgovaGAF163KTw4lxLScle4io7L8no3I=; 5:sItTtFKIElXTdLU9F9FRlrQ2RbFvz0dXybnbcRtNY7awNj5XsIonhTNd3U+UC6JL9jNeDI1vPN0qNJ4SDsC9ZhxV77pZIf2lN1g90gCF4OoCYQUDR0F5pzISMTCQAPUmlrc1Mr+r3nzmOfcVjOc0BQ==; 24:lsWjTXSEVsa4xi4KpbQvqZS/buaL666zmZLAh4y9bvBlgL4KpY4Bop9wMjVISNHzXu5DSChle0zxRwLK8qwULxiuvs6TlGEJR8teMMsMnyk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 7:bMgI7AzVJ02IQPXvQeJ/ijk2vqXnGK/8c4oo/N3eg9j/pcNopIh574Apx508u8tecr9L2MKF4ox64zBqjuBSE8sctyKcjAL6zUfMI/AZFKRU0D3FrNbM7uCTbTa7Pb+IlqFpU1d8BAFXrulwS/IQFff3seOeTpX5nm2QbcHcbvBmldoeEjAlz5Lwf437UfZI4uTb2ekGoW+WYHj1eBBlqB81wcxdGnjSGZNrIab+zi92s8RXQygHlJW0BmaGkkaBRKuvUcatmrz2hMfJg1nPhyg64sALTrfHbSZsORv1k7VAHVVoLsDf5OY4vn7unvmCtbK+oM+jUdDIlxZx4NUviw==; 20:ba3I6KTNEFR0Ah4emJoLlw41+iwTAhnAATmHd5usvds4RbPJajviIQrKvxplOAod+nVBv605G4srqu884Lg0nAoL4PGwxvbgj2h5ybN6UAHx8Uzwa8Ij7mgsWJxyxUQvUvXhK4vBWh0AxlOQY8pr6KuqtUnS1cBes5Gck4ikswA= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2017 23:49:04.0984 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0354 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 |
On Tue, 2017-05-23 at 16:48 -0700, Bart Van Assche wrote: > 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 <bart.vanassche@sandisk.com> > Reviewed-by: Hannes Reinecke <hare@suse.com> > Cc: Doug Ledford <dledford@redhat.com> > Cc: Christoph Hellwig <hch@lst.de> > Cc: Andy Grover <agrover@redhat.com> > Cc: David Disseldorp <ddiss@suse.de> > --- > drivers/infiniband/ulp/srpt/ib_srpt.c | 13 +++++-------- > 1 file changed, 5 insertions(+), 8 deletions(-) Depends on patch #12, ignoring for now. -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 1ced0731c140..c440e1848ec5 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: } /**