From patchwork Thu Feb 2 00:58:39 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: 9550897 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 C027660236 for ; Thu, 2 Feb 2017 00:59:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A867D2844A for ; Thu, 2 Feb 2017 00:59:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D2B62845B; Thu, 2 Feb 2017 00:59:16 +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 010A92844A for ; Thu, 2 Feb 2017 00:59:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751414AbdBBA7P (ORCPT ); Wed, 1 Feb 2017 19:59:15 -0500 Received: from mail-sn1nam02on0066.outbound.protection.outlook.com ([104.47.36.66]:47365 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751370AbdBBA7G (ORCPT ); Wed, 1 Feb 2017 19:59:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vMt8y9b7O61LXKpFNdsvZvKtCmL/mbrMmhoUGHr8yy0=; b=IdkjZZKNjjMzoMxNDWPH54R/3x9vqhHYtfcEklYPXHBVil2N+UzW3Uz6MQC4CkIw5bzltaiHeFQCU854Kzjm+X0bYhzNmsHNyHf7icJekBx55EOHYo3yGb0EnNm6kSlf/M2jtKw1+nFlWSF9UeneOUDpIrHE6i0CoREJT4o7bKg= Received: from BY2PR02CA0029.namprd02.prod.outlook.com (10.141.216.19) by BN1PR02MB039.namprd02.prod.outlook.com (10.242.210.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Thu, 2 Feb 2017 00:59:03 +0000 Received: from BY2FFO11OLC006.protection.gbl (2a01:111:f400:7c0c::157) by BY2PR02CA0029.outlook.office365.com (2a01:111:e400:2c40::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Thu, 2 Feb 2017 00:59:02 +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 BY2FFO11OLC006.mail.protection.outlook.com (10.1.14.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Thu, 2 Feb 2017 00:59:02 +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 0B.BC.01420.E0282985; Wed, 1 Feb 2017 16:49:18 -0800 (PST) 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; Wed, 1 Feb 2017 16:58:57 -0800 X-AuditID: 0ac94371-7ee9b9800001058c-a2-5892820e110f Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 71.73.16817.15482985; Wed, 1 Feb 2017 16:58:57 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , Andy Grover Subject: [PATCH v2 22/36] target: Inline transport_check_aborted_status() Date: Wed, 1 Feb 2017 16:58:39 -0800 Message-ID: <20170202005853.23456-23-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170202005853.23456-1-bart.vanassche@sandisk.com> References: <20170202005853.23456-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrALMWRmVeSWpSXmKPExsXCddJ5kS5f06QIg53HzSz2z3rGZNG69C2T A5PH+31X2Tw+b5ILYIrisklJzcksSy3St0vgyuiZv4u14LZOxbcftxkbGLepdjFyckgImEg8 OniWrYuRi0NIYCmTxOejU9lAEkICWxklOtYEdzFygBVtvVIIUbOZUeLG5Q2sIDVsAkYS397P ZAGxRQQMJH73XmAEsZkFXCTm3fwAViMs4Cnx8vpSVpA5LAIqEgebs0DCvAIOEncPXGGHuEFe YlfbRbByTqD44uMQI4UE7CW+/TnKArJXQuAxi8T5H6eZIZoFJU7OfMICsUtC4uCLF8wQDeoS J5fMZ5rAKDQLSdksJGULGJlWMYrlZuYU56anFhia6BUn5qVkFmfrJefnbmKEhGvhDsbXt70P MQpwMCrx8AqITIoQYk0sK67MPcQowcGsJMLr2wgU4k1JrKxKLcqPLyrNSS0+xCjNwaIkztv6 uj9CSCA9sSQ1OzW1ILUIJsvEwSnVwMg2a5PMEq5305SvaSx/oFAh6MEX0yY3w3SxIqf7Zb0J Non1n15ufPvVNWfbf2VW1hOSHjZvC4r+WlyffXTryon5KkfeLlcpvtLuoaR97ccsa8eWS9MV 9qWqTH/8XkHl/4x1D2M/sO2JvF7L/lLJvfOxza31EtZh9z8e3hY/277+WlRkxK0Sf3MlluKM REMt5qLiRAA8/Wm3UwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkuLIzCtJLcpLzFFi42Lh2siRohvYMinCYH6PhMX+Wc+YLA7+bGO0 aF36lsmB2eP9vqtsHtPWnGfy+LxJLoA5issmJTUnsyy1SN8ugSujZ/4u1oLbOhXfftxmbGDc ptrFyMEhIWAisfVKYRcjJ4eQwEZGicYfESA2m4CRxLf3M1lAbBEBA4nfvRcYQcqZBVwkHpwX BwkLC3hKvLy+lBXEZhFQlTix8TY7iM0r4CDx4uJBsLiEgLzErraLYDYnUHzxcYiRQgL2Et/+ HGWZwMi9gJFhFaNYbmZOcW56ZoGhoV5xYl5KZnG2XnJ+7iZGsJc5I3cwPp1ofoiRiYNTqoGx vfGjn8LWp+tmRUdvDgjm0V2kt+3qsdSCjrKiyEWFD3Z5hHTo8crFu92bIev/NlGpR6AnzUKw vnS7rJ+EzukTHluPTDm0n+/DBOb4uPU97xj0lGw/Rlf/bVF4p6/GtfVWwtSY00If1qzeK/Jc fo2sVtvrh6dWim0T4Tn1+uSHhZwSumqmCgFKLMUZiYZazEXFiQCD6QnxogEAAA== MIME-Version: 1.0 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:(10009020)(6009001)(7916002)(39450400003)(39410400002)(39840400002)(39860400002)(39850400002)(2980300002)(438002)(199003)(189002)(6200100001)(189998001)(6666003)(4326007)(1076002)(38730400001)(2950100002)(50986999)(77096006)(5660300001)(97736004)(2270400002)(76176999)(33646002)(106466001)(626004)(110136003)(8936002)(1691005)(54906002)(48376002)(50226002)(5003940100001)(36756003)(47776003)(50466002)(68736007)(81156014)(305945005)(69596002)(2906002)(7049001)(8676002)(86362001)(6862003)(92566002)(53936002)(81166006)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR02MB039; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC006; 1:7tAwvWAmGJCzXM9mSOZvLI4c4bxtfGbH+cQJzbosN/SpaKKDOl6h2jwlukJBA9au1LFRDWIS4pzfvbYNax1yCJjMOUEGzs3XMTKImAoDGKOjrJ4I1pk9GxtEKbQEcWqezXoOptxDUzRYd/o5DScrSK99LlEl//JeS7ivJCmEYCnOqMDVwcy+GU1WfAdpD23hNqgiSss3MZCOgRWCNgqp5JWHbHE2yOCmkfSlkuI9jiS4uqG+Q82z+CAOgmbv04w2SnhIDx8uH3aL2PZhpMPHGtO4ggu1t5c3MxbeE4xzhNsliOQh2CoU6jzWtReLojdWTabfNxYx3vxXzM4SyF827BB+QZOLcRCiG8BahnACttiTzt2C4yjMIAFw4CsWgjP0c+3Amn3H3nbVG+LhI2FRjXRyilTSkbaUX70PQIA0x6VfnW/wnJNA+dcIxy5NhY8KPSHl34++WPh3yk1aeVusNd2bhnABNPAqdWehu9n+d5MM02uiGdxNHYmYAsj3nRuk X-MS-Office365-Filtering-Correlation-Id: 3025bc10-34f5-46b5-5368-08d44b06ae21 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BN1PR02MB039; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB039; 3:CGD2K9IpfIzOWc8M2SkGzpE2l1oBrFxeZfrCYq2JLhHi41as4opvwIP8h83jWh+RIbdAvf2MXWtBwfUoc4h/fj+fbdcfWwSdIyzPjB37ui9EXMW8ftLIct/IE9sDwdwDKJ+oPLPqkwplWVW5cof5PI0QEDprlk4iN7eM2ai8iJF2Ur/sdKYul3ttOmsqv1pQ829R177TTOJRNjNBJEoRNHNT3dZBlv9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4jArHRNVCkSnfte+1xt0GQiifrBfo1teCMDiKjGHD6FBevstkPTaNtd2tjl+RjKZyqiKl0vQ26e0pS69JTLK5I8WFCfpbry2tPOE6f64GSaWnsEG3Z65QjD+w+oSWFJQ5Jy7Jm+u0ZacjHedpTcaQdbAByvp7JLT0sX+18RcxDc5J6JhtKwlkoE9PvVwPn4qqiDlyPm11RJcO0Jr+gR8fEyCKcFcJM7nTMLfzXHOYkHqZrDxCCRcbeHH026VnNEWaFplAFgFcx4DYaTsHgb8lQUcx5C09D2EW4cT1eVIAO4/mHx5eNViTQ7AXlpWPJ0R/+d27k6lQLbGmQRLqRqIJrlahQm6mowJOTX5zLJwvqKj3PGjBGrE+yqwbD0FE382CZDYVZS7+93FBlCI8LVrDxfI0a06z+Ipz1/V0z9oOnU2ANODjp X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(5005006)(8121501046)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123558025)(20161123562025)(6072148); SRVR:BN1PR02MB039; BCL:0; PCL:0; RULEID:; SRVR:BN1PR02MB039; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB039; 4:PgiJz/8yQWj1G5Py8V7WfYbVN8DeiLDR7EVqMvUUs4j1rkktZInJ0FmJPR+yhV0LQoanJ6ErwOJybrknxjKNlKDeu0durQSGKy9lshgan9qrr2y9PBhr9jaz/oueR/7dukJcFkvbdv/9cCJHlB+Z1ifU95hVji87DOfxVEnRV7cr+puvOL8WW6GwLvi6M9k+cOUFhslG1Ge3O/dSaco2K0klxX36WIBZFPu9c4vytEmbkDkX1qAKpQfV0k44zVsVIWfh7hCDpqV8QOmxCO6opI6gXCtLrtiKucSvL/mSCasthpX6q2s8Gyvzy2U1LTUSsKag+Bdk7xXhGzHO9ElO4dmHRor3lD8k5O4hro3UQQdAUYol7bWEMXLIxnszZl9E+yLHrRFG/pBez8e/YXJZj6vnKgNNzfJUz21W2184rA2+qXfFphu7U2lyUWFdcSC9SNgLfOr4u7/nQf7uy54/jxXsh0n/XKqt2EvY6go0oCgKSajEBSarP4fSz25y6ZEjiiVNa3K75/B4/ljRiYQ410037bp4Qawnzwd5CdhHx7fzc6VrmAopke1hV9cUfm0s79O7D/dW+2FrtLmgZavBnnbJJvaoXEo1y09Vgo4hwku7HWljZdQ5pERP9T3oJlSHtgegwsZu/c2anzwwtkJ8c2EoIip7sh1zLZZ4d7GlCuqD+sD/8dLABGcp2K7MBPmdMQMEQG5ZnsEjQnfdqIZKhQ== X-Forefront-PRVS: 02065A9E77 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR02MB039; 23:SUqQHA8HRz7BfuVRQNwR8vNRUvOV9cSsOHEd9MiVGJ?= =?us-ascii?Q?hZT1lRn9mE3X+kFKniQQ55mYCrL+s44o6kqOZOIKU0iZ1JbBQtzkkR4/VdrM?= =?us-ascii?Q?OQ7JdjPNI15nUglIzpXVKk8V8g127Y/ipTjHNOOSW5lLiBAJ0INt+6etmPuL?= =?us-ascii?Q?hfrek7qEmizuuUXocnFuh9QfsiVxAyqaAzJze1joyV47pLbSrhznXGSvZFH9?= =?us-ascii?Q?fMPZiSxrc84Du1aFuGPI9F7xKTtkjBVGANWbBC4n/vsLaEnlVY4XKSTxWNhR?= =?us-ascii?Q?j3oQARMdnShbMykbm5TCnYBjPeqpbQBZwDg16BS3ANGdetrPG8coAJgsdhqJ?= =?us-ascii?Q?WuCndMneLFHlHqJGSGVcHyKxWKLvV9wzaYTyXbwv0eYWuPYqpAa2h23VThy6?= =?us-ascii?Q?us5P7Fs27s6GbHXi9qSZbW3NhYJTmvXmlUKwFWNlY8caijX8y5TNbLZEW1Jo?= =?us-ascii?Q?KNqfHaWi7r4TGhePV1Yuhp+23sVD6r5II/S0VeZD3JcEV8XJ0hmQHYNQitAm?= =?us-ascii?Q?n3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QECwKlLOA5rZRL2DIR5/hQUutLLHXbM1sBLjEXqx7EP0Bt2VwYzoPalZkRIXbLhR9thBWwQ7BjIurcTEPTor9PZvT5+ZW7I7hsQOAjLAs7Swp8VbKpsc8cH85OK0KHwX4udp+5cZffICZOageA6R824bGlbRUTW X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 00:59:02.9233 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR02MB039 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 Due to the previous patch the second argument of transport_check_aborted_status() is ignored and that function does no longer have any side effect. Hence remove all calls of that function that do not check the return value. Additionally, inline this function. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Reviewed-by: Hannes Reinecke Cc: Andy Grover --- drivers/infiniband/ulp/srpt/ib_srpt.c | 3 ++- drivers/target/iscsi/iscsi_target.c | 7 +------ drivers/target/iscsi/iscsi_target_erl1.c | 8 +++----- drivers/target/target_core_transport.c | 8 +------- include/target/target_core_fabric.h | 1 - 5 files changed, 7 insertions(+), 20 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index d21ba9d857c3..9241553f796d 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -1161,6 +1161,7 @@ static int srpt_abort_cmd(struct srpt_send_ioctx *ioctx) * Do nothing - defer abort processing until * srpt_queue_response() is invoked. */ + WARN_ON_ONCE(!(ioctx->cmd.transport_state & CMD_T_ABORTED)); break; case SRPT_STATE_NEED_DATA: pr_debug("tag %#llx: RDMA read error\n", ioctx->cmd.tag); @@ -2289,7 +2290,7 @@ static void srpt_queue_response(struct se_cmd *cmd) } spin_unlock_irqrestore(&ioctx->spinlock, flags); - if (unlikely(transport_check_aborted_status(&ioctx->cmd, false) + if (unlikely((ioctx->cmd.transport_state & CMD_T_ABORTED) || WARN_ON_ONCE(state == SRPT_STATE_CMD_RSP_SENT))) { atomic_inc(&ch->req_lim_delta); srpt_abort_cmd(ioctx); diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index b4f1d1cbe521..02c4f3f5c2aa 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c @@ -1518,8 +1518,6 @@ iscsit_check_dataout_hdr(struct iscsi_conn *conn, unsigned char *buf, if (hdr->flags & ISCSI_FLAG_CMD_FINAL) iscsit_stop_dataout_timer(cmd); - transport_check_aborted_status(se_cmd, - (hdr->flags & ISCSI_FLAG_CMD_FINAL)); return iscsit_dump_data_payload(conn, payload_length, 1); } } else { @@ -1535,11 +1533,8 @@ iscsit_check_dataout_hdr(struct iscsi_conn *conn, unsigned char *buf, */ if (se_cmd->transport_state & CMD_T_ABORTED) { if (hdr->flags & ISCSI_FLAG_CMD_FINAL) - if (--cmd->outstanding_r2ts < 1) { + if (--cmd->outstanding_r2ts < 1) iscsit_stop_dataout_timer(cmd); - transport_check_aborted_status( - se_cmd, 1); - } return iscsit_dump_data_payload(conn, payload_length, 1); } diff --git a/drivers/target/iscsi/iscsi_target_erl1.c b/drivers/target/iscsi/iscsi_target_erl1.c index fe9b7f1e44ac..ee6ac90b9cf5 100644 --- a/drivers/target/iscsi/iscsi_target_erl1.c +++ b/drivers/target/iscsi/iscsi_target_erl1.c @@ -951,8 +951,7 @@ int iscsit_execute_cmd(struct iscsi_cmd *cmd, int ooo) * should be sent after unsolicited data out with * ISCSI_FLAG_CMD_FINAL set in iscsi_handle_data_out() */ - if (transport_check_aborted_status(se_cmd, - (cmd->unsolicited_data == 0)) != 0) + if (se_cmd->transport_state & CMD_T_ABORTED) return 0; /* * Otherwise send CHECK_CONDITION and sense for @@ -980,8 +979,7 @@ int iscsit_execute_cmd(struct iscsi_cmd *cmd, int ooo) * WRITEs if no more unsolicitied data is * expected. */ - if (transport_check_aborted_status(se_cmd, 1) - != 0) + if (se_cmd->transport_state & CMD_T_ABORTED) return 0; iscsit_set_dataout_sequence_values(cmd); @@ -1000,7 +998,7 @@ int iscsit_execute_cmd(struct iscsi_cmd *cmd, int ooo) * Send the delayed TASK_ABORTED status for WRITEs if * no more nsolicitied data is expected. */ - if (transport_check_aborted_status(se_cmd, 1) != 0) + if (se_cmd->transport_state & CMD_T_ABORTED) return 0; iscsit_set_unsoliticed_dataout(cmd); diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index e1ab3d015797..68dbb32858c3 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -1900,7 +1900,7 @@ void target_execute_cmd(struct se_cmd *cmd) /* * If the received CDB has aleady been aborted stop processing it here. */ - if (transport_check_aborted_status(cmd, 1) != 0) + if (cmd->transport_state & CMD_T_ABORTED) return; /* @@ -2947,12 +2947,6 @@ transport_send_check_condition_and_sense(struct se_cmd *cmd, } EXPORT_SYMBOL(transport_send_check_condition_and_sense); -bool transport_check_aborted_status(struct se_cmd *cmd, int send_status) -{ - return cmd->transport_state & CMD_T_ABORTED; -} -EXPORT_SYMBOL(transport_check_aborted_status); - static void target_tmr_work(struct work_struct *work) { struct se_cmd *cmd = container_of(work, struct se_cmd, work); diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index 5b7af743fe79..4c2d6fbf5f95 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h @@ -153,7 +153,6 @@ void target_execute_cmd(struct se_cmd *cmd); int transport_generic_free_cmd(struct se_cmd *, int); bool transport_wait_for_tasks(struct se_cmd *); -bool transport_check_aborted_status(struct se_cmd *, int); int transport_send_check_condition_and_sense(struct se_cmd *, sense_reason_t, int); int target_get_sess_cmd(struct se_cmd *, bool);