From patchwork Wed Jan 25 23:36:32 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: 9538121 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 89F1C6042C for ; Wed, 25 Jan 2017 23:37:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FD8227FB0 for ; Wed, 25 Jan 2017 23:37:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74D7C27FBC; Wed, 25 Jan 2017 23:37:12 +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 0885F27FB0 for ; Wed, 25 Jan 2017 23:37:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112AbdAYXhK (ORCPT ); Wed, 25 Jan 2017 18:37:10 -0500 Received: from mail-co1nam03on0072.outbound.protection.outlook.com ([104.47.40.72]:31232 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751638AbdAYXg6 (ORCPT ); Wed, 25 Jan 2017 18:36:58 -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=HpuRDz7INWkcgIviXN3SRPvRanzE7mU1vglFXfQ2m2Q=; b=VEdZgH5vYCAwMri9iluZVNPmDuaaqMOYan445VXeexprBCmb3RofvKhLityjIkIsDbOzAoKof7V1LDsLPM0dTVzahOQHRQcORkxclwKySKv2bpADHXQ+EGxTYcgV7VMpcHJ7KfmFAYse2xRjaDHgn4yVnP4qhF1eoFQMWx3T17M= Received: from BN6PR02CA0035.namprd02.prod.outlook.com (10.173.146.149) by BY2PR02MB1412.namprd02.prod.outlook.com (10.162.80.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Wed, 25 Jan 2017 23:36:56 +0000 Received: from BY2FFO11FD036.protection.gbl (2a01:111:f400:7c0c::126) by BN6PR02CA0035.outlook.office365.com (2603:10b6:404:5f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Wed, 25 Jan 2017 23:36:55 +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 BY2FFO11FD036.mail.protection.outlook.com (10.1.14.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Wed, 25 Jan 2017 23:36:54 +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 9A.C8.65426.6C339885; Wed, 25 Jan 2017 15:24:54 -0800 (PST) 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; Wed, 25 Jan 2017 15:36:49 -0800 X-AuditID: 0ac94369-b62949800001ff92-2d-588933c67280 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 6D.35.16817.19639885; Wed, 25 Jan 2017 15:36:49 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , Andy Grover Subject: [PATCH 20/34] target: Inline transport_check_aborted_status() Date: Wed, 25 Jan 2017 15:36:32 -0800 Message-ID: <20170125233646.2243-21-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170125233646.2243-1-bart.vanassche@sandisk.com> References: <20170125233646.2243-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsXCddJ5ke4x484Ig/ezxS32z3rGZNG69C2T A5PH+31X2Tw+b5ILYIrisklJzcksSy3St0vgylj//ANjwVqdigPTHzE3MPaqdjFyckgImEjs XrKQvYuRi0NIYCmTxOEVLxghnG2MEref/GPpYuQAqzpyLRMivpFR4t7tD+wg3WwCRhLf3s9k AbFFBAwkfvdeYASxmQVcJObd/MAKYgsLuEks7FgMZrMIqErse7IerJdXwF6ibekmJogr5CV2 tV0Eq+EEiree/Qk2U0jATmL9gVYmkMUSAs9ZJK7PbmKBaBaUODnzCQvEMgmJgy9eMEM0qEuc XDKfaQKj0CwkZbOQlC1gZFrFKJabmVOcm55aYGiqV5yYl5JZnK2XnJ+7iRESspk7GO8+8T7E KMDBqMTDK7ClI0KINbGsuDL3EKMEB7OSCO86uc4IId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rxu 976ECQmkJ5akZqemFqQWwWSZODilGhgVdWpP+5wq1bdb9LTD9UGzxb6rxbcMlfc5WkXe5o5P cZ+1IV9x55pmpf/ustMXrQw5rBJauuettfxu/lmhGw9OM7R4z+r5p++1jGl2zYJSf93K7gRv 2zXsv7K/t9YFKrB61l/+LzJTnWUf24NFfGWlRt9Mjk795VKgEltonGlsfK7x9pOV05VYijMS DbWYi4oTARBKlYdVAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJMWRmVeSWpSXmKPExsXCtZGTTXeiWWeEQdtuC4v9s54xWRz82cZo 0br0LZMDs8f7fVfZPKatOc/k8XmTXABzFJdNSmpOZllqkb5dAlfG+ucfGAvW6lQcmP6IuYGx V7WLkYNDQsBE4si1zC5GLg4hgfWMEseaZ7N2MXJysAkYSXx7P5MFxBYRMJD43XuBEaSeWcBF 4sF5cZCwsICbxMKOxWDlLAKqEvuerGcHsXkF7CXm3drNBmJLCMhL7Gq7CFbDCRRvPfsTbKSQ gJ3E+gOtTBMYuRcwMqxiFMvNzCnOTc8sMDTUK07MS8ksztZLzs/dxAjxc+QOxqcTzQ8xMnFw SjUwMkoee5/yffa17ngJdjt2lu+Pz9uEOsea77l/2ivdZldIP/vM83Nyy3i6VWWS2B4aLDy2 YMkauXmS/4WefMkOLn2z+/ml2Qvcfhke/pmwvHF9Ue/uWzNn2j+ca/Y9bsVbQQeupVVhagwX WCvD1H9wlPLt4HxfrDNJ1ydFg/fK6ovKPsxPgrP6lViKMxINtZiLihMB89uAMqMBAAA= MIME-Version: 1.0 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:(10009020)(6009001)(7916002)(39840400002)(39860400002)(39450400003)(39850400002)(39410400002)(2980300002)(438002)(199003)(189002)(2906002)(68736007)(50466002)(48376002)(5003940100001)(8676002)(189998001)(92566002)(2270400002)(4326007)(8936002)(50226002)(1076002)(5660300001)(106466001)(81156014)(81166006)(6862003)(110136003)(626004)(6666003)(86362001)(47776003)(6200100001)(305945005)(53936002)(575784001)(7049001)(33646002)(97736004)(2950100002)(69596002)(54906002)(356003)(1691005)(50986999)(77096006)(38730400001)(76176999)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB1412; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD036; 1:LlPBOaPMdLUF2Qsbh/fbIRlj5sAz0JOGixle+F44KeokqbJ1+hsG3LVSKAuFy/c+MpSg9TFLdPQVFfe2qBsr94ZUBvsb2YATQKRaAzz8urfJXSrURFkAsctFLoxOPPw4hsIyCYjoYp6DBPa98NuE/haQ0+tXuUoQZ92hGnQqSOEJjvi0XZyarnvyTQe4HUleX4c6IV98es9dFisdGMlagAV16qwsGcurTR50nWvMbYTXRK4oUcwc+FZ9K0UIGwfV7qg0rD51//uyVm3NWGvZc9cn/qkpuj/GYJ038svIr5bxff/HXk+laTeNGdRYD6PqLmO4W1u73glwfexyGqqNydxZ1osMrxbyL1iHqD1psQI66P/AcnV/PZLDcoE/4D466wy0LJ6csFc1buDj/o34vQzp8AtTufptIn/t0IuOpl+ODeaq7Besba9FAnutu0E9cqLC0trXZZM2XTrS/NIA5usaQ2uUp1OMgoNKqXVGmoBs2vpETdsHDvtE9nxbtS2H X-MS-Office365-Filtering-Correlation-Id: 4019f38a-1020-49d5-1562-08d4457b0be6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB1412; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1412; 3:kRDTksfyXxNL1oz7efL+ZQhjd2ZmljsHsST/RjHvatfvuDKNUSa3ZBGvIevXc2Q561UunHJUeEAi/jNSea0OhB8fk99QLVpsGiiIyTyZCJwg8Qc954Lh/n9J8Yi7lxuRFhu6yTGPbkq3Kt8A0IJfwXUxXydbAxbOqZGU6xX/U7RDe+a5DW8wfrh/SpqhMThM1TClE6vDQJcgREmualUgSL0h32FJkAKWR4DtYUWg/OzmDK+6d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9Y+KAKlzD/Ip1IDZOjZr9MXtK5MuzwmyfwJpoYox+EyPROTvwqUmki8xN0QzSqf3r72XzFOgEFgJTtRv0pdkowBfXZ2LILGU/MiXGmmYuEsprXlRUtw91LHx0sC3lvS2IOX5f5tFCITTtjbh/EZJ5DtUJ8UxYytdMZws6tan5c0RGeR9eMXfVY7I6/DT0oOoifFhoHbd+zJlQZtIEFjeQUvYYx7Uq3lops2UQ7nzJlCrdvAQGzQLAXZ5aF/cTlbmAJjinyMN2Zyleg9BbPVwtPKxS/Jj+DuZPmjsUdbN2QLm6HAfVqSzzYLCXtQSvSzqvZ8sc1q6wtKtOKWUe1b+uOqf36LilpDZcjtNYz1ActVq0jql/+ouqhPBxajiWS93/Kqod+nnatpPRWFNWb+U 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)(13018025)(13016025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:BY2PR02MB1412; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB1412; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1412; 4:H59MxT1HYh3IV/g6Oa6hT/E3ml/wTWT6oi+pOvkacHiSNqbep7YEi1CQk8lqaGMzeT45mqv+JH2C7yujaYXiddBTnzUcPMrsdlhTum+X18lVE6dE+c5qEqLmyqLvgVatV87hrI6KDUwRROmWKXltYshWdoBTJExarR90AYAPn5h2B67GQB6CEEChrUp0OyOBp/C+waP6TGp+c5pmnkHS8zqqmw5/diGwta1la1TFJLbbJEGy63V1Ysx+tx4fGPAVdbehbHAJuJXHcQLJEahOCCIUqMoQcEy0Eq3+5KZVcIFhK3UL+mUBhhdcaPJQ2R9oYqshbEvdAVnDcNcREQqIJsqcWu38SQKvLe/OGPyrmkkt/L/l0YrIPOk47EX2I8GFVvJxes+4Foz8pAxETk9FKgJ+ZmOFjbafAU6bOqx4aKSRR6y5vErHWWbefXxkD0rG4ccwD6hPSiJHQytIGqmdu33UKqBHb6sAXvxTkcQWuyjOa82LFekCmveJhpW9YDqtKNC6jV96XuCoRB84fwzcDtKtl1rZLiOd31/e8Ii3OCtVLi4mY4SxbYrhGIdD9TMHNb6mLOMPsL92ctfbI3K/f8gvpklB3jKLnlPM3YWX54u806yi6tMLziNzSGg66pQLE44KHfWiAOW+U5U0nfSs+V6kVftG2bv19JMlkuCHTww= X-Forefront-PRVS: 01986AE76B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR02MB1412; 23:7XHP/YbWsa4pPEA9ffI8SSjKS6p2qcSIFOcEpfZ+D?= =?us-ascii?Q?ffA0YlhzhVnsexbbeZkY/QVjkT2+BLUy3p+oBV6wFwyEgsovS3+O1anvC3/j?= =?us-ascii?Q?bePbqzjGYdVzCZbgkj/2F9kO0NQbecB92H/7XqnnUj+Rx/WgmY6lQD95rRS8?= =?us-ascii?Q?qGTw/mL2SFk5XM/CpiaJzbyyizhX/zvfcpG3oua7ug4Ltie5tUS4dph9OWIT?= =?us-ascii?Q?W1dBXfdvTi93goIg3XXIuthn/eNiUbPEVewvkzyeL4IQZ1OP0igl7gDNndF5?= =?us-ascii?Q?5Fx2jWZoju/v/3iwZsOl8x8kN6JTWqRBbaZoRm0IOHz99/rhGnOxWfiCbXdC?= =?us-ascii?Q?ut9EJQuUqoxxqb4vmrXWbi1KfGjUQstuD65pSBBvgEwHfRaJWLxZuVHV2G8Z?= =?us-ascii?Q?ACFlDlrE/cQW1XpGocCAQIvf7Bb9j8EYhvcpd8GOvgw90JZb/szUPgn3z429?= =?us-ascii?Q?OWzUWA1asQReFfYCLzU+Cj/RJYO3vCb6TRDh+vVRtbVMjZvOJAQOfaeHVURq?= =?us-ascii?Q?QCnTBTWcq6K2oB9h8bdH+lWE7t0AxwaCplvvFzD94NahsZ4H3ISNIgi8cs1M?= =?us-ascii?Q?BM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9n2+tcs/3SrYc/7Bt9eA== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2017 23:36:54.8536 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB1412 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 Cc: Andy Grover Reviewed-by: Hannes Reinecke --- 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 d0664b8423e8..1c942449a322 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 65a718095c6b..de0d6056253a 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -1886,7 +1886,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; /* @@ -2933,12 +2933,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);