From patchwork Fri Jan 29 23:17:59 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: 8168651 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 0C443BEEED for ; Fri, 29 Jan 2016 23:18:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1578920328 for ; Fri, 29 Jan 2016 23:18:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0764020340 for ; Fri, 29 Jan 2016 23:18:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754018AbcA2XSG (ORCPT ); Fri, 29 Jan 2016 18:18:06 -0500 Received: from mail-bn1bon0099.outbound.protection.outlook.com ([157.56.111.99]:61760 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753397AbcA2XSE (ORCPT ); Fri, 29 Jan 2016 18:18:04 -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=XqDbYawgYgd7C5yr9oPj9DQndjcTGQN8NmikzHcmO+o=; b=fRvYfcWnActUKxQuuHlW0IjhVLnOHt93EM+qZVdQZCBLWwNNT5rjV25fKuAHZ/jrZLEOfacYq8NIIRQ3M/KrTIKxKcdKRNIv07zfkHmJtIiF6Zi7pCUQIzB1cZmLUli7R6tHxafrnUmpMlgrve7miLfo7lquE+Mr73YyOs3MG7E= Received: from CY1PR0201CA0034.namprd02.prod.outlook.com (10.163.30.172) by BN1PR0201MB0820.namprd02.prod.outlook.com (10.160.170.152) with Microsoft SMTP Server (TLS) id 15.1.390.13; Fri, 29 Jan 2016 23:18:01 +0000 Received: from BN1BFFO11FD040.protection.gbl (2a01:111:f400:7c10::1:156) by CY1PR0201CA0034.outlook.office365.com (2a01:111:e400:58b9::44) with Microsoft SMTP Server (TLS) id 15.1.390.13 via Frontend Transport; Fri, 29 Jan 2016 23:18:01 +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 BN1BFFO11FD040.mail.protection.outlook.com (10.58.144.103) with Microsoft SMTP Server id 15.1.355.15 via Frontend Transport; Fri, 29 Jan 2016 23:18:00 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com ( [172.22.12.162]) by (Symantec Messaging Gateway) with SMTP id 0E.B8.25823.823FBA65; Fri, 29 Jan 2016 15:18:00 -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; Fri, 29 Jan 2016 15:18:00 -0800 X-AuditID: ac160a69-647ff700000064df-fe-56abf3282547 Received: from [10.60.52.49] ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 04.77.02700.723FBA65; Fri, 29 Jan 2016 15:17:59 -0800 (PST) Subject: [PATCH v2 19/22] IB/srpt: Fix srpt_write_pending() To: Doug Ledford References: <56ABF16E.7070006@sandisk.com> CC: Christoph Hellwig , Sagi Grimberg , "Alex Estrin" , "linux-rdma@vger.kernel.org" From: Bart Van Assche Message-ID: <56ABF327.3010005@sandisk.com> Date: Fri, 29 Jan 2016 15:17:59 -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: <56ABF16E.7070006@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsWyRoxnka7G59VhBgvesFpcePqdyeLl+Q+s FitXH2WyeHaol8XiRtsDNgdWj8V7XjJ57L7ZwObxbPphJo/3+66yeXzeJBfAGsVlk5Kak1mW WqRvl8CV0dK9iKngLH/F228nWRoYu3i7GDk5JARMJBb8m8DSxcjFISSwiVGi7ccMNghnB6PE 8strGWGqFu5YBZWYwyhxb80GVpCEsIC1xLMT79lBbBEBNYlNrxaB2UICWhLnLnxhB2lgFljF KLHp6nWwBJuAkcS39zNZQGxeoKJps38zg9gsAqoStxs2g9WICkRIHO7sYoeoEZQ4OfMJWD2n gLbEktkXgGwOoKGaEut36YOEmQXkJba/ncMMsktCYBOrxOpVk5khjlCXOLlkPtMERuFZSEbN QmifhaR9ASPzKkax3Myc4tz01AJDI73ixLyUzOJsveT83E2M4PjgytzBuGKS+SFGAQ5GJR7e BStWhwmxJpYVV+YeYpTgYFYS4a17ARTiTUmsrEotyo8vKs1JLT7EKM3BoiTOa92iFiYkkJ5Y kpqdmlqQWgSTZeLglGpgLJysO0cwnC8uXzOM3WnlmQ8nl6j+FlnQe1PVYMmyQxXfc+Oc5wiW hdQFcur/ifC99sOfW1fUR6trrhiX1qZtvwL3xi6qP5IslHdb/Vn5IwPrybzxOhb8f1otpzwz fe07a6LCF+6Ga2VS/iq313FI1dkKba1YrtEjuXPL/YKC7NNt+3fzPeFVYinOSDTUYi4qTgQA qdCrW4sCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHJMWRmVeSWpSXmKPExsXCtZEjRVf98+owg6WXDS0uPP3OZPHy/AdW i5WrjzJZPDvUy2Jxo+0BmwOrx+I9L5k8dt9sYPN4Nv0wk8f7fVfZPD5vkgtgjeKySUnNySxL LdK3S+DKaOlexFRwlr/i7beTLA2MXbxdjJwcEgImEgt3rGIDsYUEZjFKzJiTBGILC1hLPDvx nh3EFhFQk9j0ahE7RI2WxLkLX4BsLg5mgVWMEr9XfgBrZhMwkvj2fiYLiM0LVDRt9m9mEJtF QFXidsNmsGZRgQiJw51d7BA1ghInZz4Bq+cU0JZYMvsCmM0soC7xZ94lZghbXmL72znMExj5 ZiFpmYWkbBaSsgWMzKsYxXIzc4pz0zMLDA31ihPzUjKLs/WS83M3MYJDlDNyB+PTieaHGJk4 OKUaGHlKOZXvTpcTnhNgrd/p0vvD6c8O2dh96+93fWw77u40L/HI7mqHdHWj+XWurKuX7dqi Z88WdHrmBMlTKZxrN8lMtT7KExFWkWQso9xc173s19pQ5wznn8u+XFfLCEs23//pppjYi5Cm P4q6zw/sPPx6UmdDqf86s0/+Fd5Lbgjq2dXN/6jqpcRSnJFoqMVcVJwIAIyLP5cBAgAA X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD040; 1:TtgF+4mn/Z7geqNMDcezkNyXRCmtofj5P48DQsctmcclF413Fn/ALx7n5U8nchg8jZD1oC109syuMsVxzF1sWdVE1xi2Nc3KeYATQQh5ORGaPDRhnd9Sb/92hPw5zWUtjxH4GKQUmCsCgIH+//wPzfGRtD6pUFdo7Z3YpVzXhf7p1HW+yGhv21Ieaw05UvaEyXV9hmPxGVP5lfbJ4ODBNkOrbfr5Qs72So71zYH8F32AiAzPgJ8jMieja+8MN09jx/G+XT0pF/yEqoLlaow5RQ2R3bOFmJEaNQIjMGnQmMlY1lrvpIZbgzJChNQ0vywmFkyY1ZsE0JrrpGcuPt5T8DtdTZnVgzXq5yz/sXKFipXbYE8fiRPtFlBC8Z/2r9I4++1DghbgUxiQOMNgF/yVtjnDm5axVSxCGD1p/KGoAqTfHBb8HxHy2pju5ugGKYRe X-Forefront-Antispam-Report: CIP:63.163.107.174; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(4326007)(47776003)(1096002)(50466002)(19580405001)(80316001)(189998001)(87936001)(33656002)(83506001)(92566002)(2906002)(23676002)(86362001)(5001960100002)(65806001)(11100500001)(1220700001)(87266999)(36756003)(64126003)(230700001)(110136002)(54356999)(2950100001)(106466001)(76176999)(77096005)(19580395003)(65956001)(4001350100001)(65816999)(50986999)(586003)(5008740100001)(229853001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0201MB0820; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0820; 2:IDSGvQelDud+OSjTywVMwSMuPa4Gc1rKRLrZPMztoKyvdXKm9q9Wh574+WaF/xK5H3oxZkNVdXwI2VLTBpun1ufbQa4U+exKFqKLSMxH3gmmHJ1sGrY7tUe/yubGQxtN5SRsGpFk1QTl5vCkQVGIKw==; 3:DHwZZwjdH+q9x9rckWQ84x7qqsbS47epewWcDZMISXCYcJKVjuukgVOkFLAnPj8QHRAiG1jSIYmsGJHKw3wH23rbPAZOl3jFtF3K/5gKm8wh/k+9lV1Irfo4kiIJBgbOFcd2ZFBqGfaeupFAtLo6CAvmxyu8B4jy1G07eNUfTfI4IPNSfhoQYQ1h6py3oJn1e4C/E0tOwQO4UZTBQtIFY19D5IOHZG4k/w2qRM48UzHrKCFQstcgCM/0R+RRjMG0eKovwqLhXipDoMPoUxiM6A==; 25:Psi030ck4NSA/1fY9akZXEHn7rpY6ZB67XkVfsJtG3v4jFWkygaUwqxt/+5//o6UdgV/A+uDpO2ty00DCj/cCzUuPmQ26tBCk30lc+JUf9lCvH4H/iZrUNTVI5FmZR32tuR9MZMSEhXHvjqJQkZT1NYEzj3+hmqIrMjqxRt8rvgT1SjXVnsJ/dg+lKwyfquhtbuS8UvBPuze4l+WgQJe4OQO6L6MFvvEhd0wRgCuS4jaWfY+nVLxN9O+h9MZFhUb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BN1PR0201MB0820; X-MS-Office365-Filtering-Correlation-Id: e4dd96df-4f68-4f39-e381-08d329026eae X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0820; 20:jE2tsoMAaB1THmymi5PFljtVsQtKRcNrDdzjnjN1iwYq4nTfn2opcuZ6gnAQWvZQ8Igp3gvEOULDEintyeu2xxOXC5wydx2XIc9stryivvLa6ENDORJTlv94vfEgvxFwGIOeyqW6X6/VsQGfrCO3VGX+PBRTbtybAF/JGGYwyQCdMUXCQwV7gtr4FZfknQipg0gZUyeBlA9mqMQCy+CajF4KJyglDfFZ2stSo6OIXcFg8wMmaqGRMIILWdU/w+Rr/S64YNiDBwSecarQZZJSvONdMFHaXS15p+4jvDYjFe/gwzADLBFKU1vQSsCX8/bgGGaw99Feid5dcCDGahhq4UCmvVxSJNZM89D6is8AXwfIidmoOOOl4ktf6G/ivn+mepeowkCMHPo+Cdld2GqUlq9uw1PgG+odhwArSKMwMNl1sXGrL97rgFZeqr7bhc82ntPg/nvrefKyEyN6hSwPw7pAid59qFz7DJ5hB/c/yjd90HuzPceFzAWa/3xTqmnb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(34787635062028)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13024025)(8121501046)(13023025)(13015025)(5005006)(13017025)(3002001)(10201501046); SRVR:BN1PR0201MB0820; BCL:0; PCL:0; RULEID:; SRVR:BN1PR0201MB0820; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0820; 4:XUcMg7LCR24iBa0uBBHfop5tsJPAYyi9KiRBP5kf7yz9orHa7nyoNA1GKd+czGfk9GHM7coor1d5Y7pUdOATNOnJGAyUC2gqXuJhmMgD0RwYtOfTVIdnRY2XRyj0rJtvorpKHi111ccGI1DjnN2ni9FfeciNKS92gQU9uHals04ewA1qHZ/H5mygkIqVN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OVpetqVGApPzes3fmyu8FFwS?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0820; 5:hvn2U34DyC1KvNLPsJIcXFOhRk3Olpcy5bOYoOC5zE2KZ1XUkYdE0D3dFjvlTV3uj0HseixarL6dxsvWRBabL+H6OeCKq7ToDweqiOInOrZEIjmtTniN6D3RvGbM8lTloTmtPFYBV46pDJ7tMjYZFw==; 24:vE9VcUMB44ATIdgBOBI+QtF3q5iCgagoMoGsvXpwxp9o54LBiCqfGMH883E6Q5Olwe7PdjB/7Y40wXVlgGoL5mAZ7hpA4OViUmit91i5Res=; 20:tHkEePz59aBalKp5vAUbgZ13rkVnYJbENwgrkr6auP53NhYF7PmCPRPohJ9EHI/2uI+gh9Y4nY//lKZB7m4CHZpUG0q3hJcUE6fKUwYQLvSphgyJ+0A8j2yNOR/p3zKiJjZvVEvqual9LDAjLhKCDGAwJsNuxbjhJb38RzDFa2yDcb6Q9fv7scyQNnOgNoUbPtlm7ezlwozty2C9Y/Xg/NIdCaX+2wiL/bo9mWfyM4McQwUC44BMa9UUmJtVV2F+ SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2016 23:18:00.7540 (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: BN1PR0201MB0820 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 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 only allowed return values for the write_pending() callback function are 0, -EAGAIN and -ENOMEM. Since attempting to perform RDMA over a disconnecting channel will result in an IB error completion anyway, remove the code that checks the channel state from srpt_write_pending(). Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg --- drivers/infiniband/ulp/srpt/ib_srpt.c | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index e9c3067..a7c966f 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -2481,39 +2481,14 @@ static int srpt_write_pending_status(struct se_cmd *se_cmd) */ static int srpt_write_pending(struct se_cmd *se_cmd) { - struct srpt_rdma_ch *ch; - struct srpt_send_ioctx *ioctx; + struct srpt_send_ioctx *ioctx = + container_of(se_cmd, struct srpt_send_ioctx, cmd); + struct srpt_rdma_ch *ch = ioctx->ch; enum srpt_command_state new_state; - int ret; - - ioctx = container_of(se_cmd, struct srpt_send_ioctx, cmd); new_state = srpt_set_cmd_state(ioctx, SRPT_STATE_NEED_DATA); WARN_ON(new_state == SRPT_STATE_DONE); - - ch = ioctx->ch; - BUG_ON(!ch); - - switch (ch->state) { - case CH_CONNECTING: - WARN(true, "unexpected channel state %d\n", ch->state); - ret = -EINVAL; - goto out; - case CH_LIVE: - break; - case CH_DISCONNECTING: - case CH_DRAINING: - case CH_DISCONNECTED: - pr_debug("cmd with tag %lld: channel disconnecting\n", - ioctx->cmd.tag); - srpt_set_cmd_state(ioctx, SRPT_STATE_DATA_IN); - ret = -EINVAL; - goto out; - } - ret = srpt_xfer_data(ch, ioctx); - -out: - return ret; + return srpt_xfer_data(ch, ioctx); } static u8 tcm_to_srp_tsk_mgmt_status(const int tcm_mgmt_status)