From patchwork Thu Feb 2 00:58:42 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: 9550927 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 5E2D260236 for ; Thu, 2 Feb 2017 00:59:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 496EE2844A for ; Thu, 2 Feb 2017 00:59:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E7D02845B; Thu, 2 Feb 2017 00:59:32 +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 ACF932844A for ; Thu, 2 Feb 2017 00:59:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751405AbdBBA7b (ORCPT ); Wed, 1 Feb 2017 19:59:31 -0500 Received: from mail-by2nam01on0079.outbound.protection.outlook.com ([104.47.34.79]:46604 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751338AbdBBA7J (ORCPT ); Wed, 1 Feb 2017 19:59:09 -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=iFkP3aWOHWQUCgdVFFhLrrUmmdCfy7NFUHHPjYco2oI=; b=CJgwte8B+tPRiKc4KqmBYlzVKWiJdnRzxtJwoMj2uyWoyUmjUhfaCJ41Q8CmrHw4/KFPQLZbxge0a9Hfd7es0kV0n8PSHSBgMQIx+LQRy4fu3R8VE5zIhTwCoq+Cp47XTH3Mg++0Yt/3pB8oS/HTDliMVknvvXHkzdUqOrZuodI= Received: from BY2PR02CA0125.namprd02.prod.outlook.com (10.163.44.179) by BY2PR02MB042.namprd02.prod.outlook.com (10.242.44.21) 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:05 +0000 Received: from BY2FFO11OLC013.protection.gbl (2a01:111:f400:7c0c::188) by BY2PR02CA0125.outlook.office365.com (2a01:111:e400:5261::51) 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:04 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.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 BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) 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: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 0D.7C.65426.37182985; Wed, 1 Feb 2017 16:46:43 -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, 1 Feb 2017 16:58:57 -0800 X-AuditID: 0ac94369-b62949800001ff92-3a-5892817329e7 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 72.73.16817.15482985; Wed, 1 Feb 2017 16:58:57 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: Subject: [PATCH v2 25/36] target: Remove command flag CMD_T_BUSY Date: Wed, 1 Feb 2017 16:58:42 -0800 Message-ID: <20170202005853.23456-26-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+NgFtrGLMWRmVeSWpSXmKPExsXCddJ5kW5x46QIg1UnTS1al75lcmD0+LxJ LoAxissmJTUnsyy1SN8ugSvj8YEVzAUT5Su2r97K3MB4VKqLkZNDQsBE4siEa2xdjFwcQgJL mST6X7UyQThbGSVazrexdzFygFVNvlQG0iAksJlRYs9aHxCbTcBI4tv7mSwgtoiAgcTv3guM IDazgJLEnqnLmEBsYQEHiaM7bzKD2CwCKhL3Fp9iBBnJCxJvtIC4QV5iV9tFVhCbEyi8+DjE SCEBe4lvf46ygJwjIXCdRaK39xI7SIJXQFDi5MwnLBC7JCQOvnjBDNGgLnFyyXymCYxCs5CU zUJStoCRaRWjWG5mTnFuemqBoalecWJeSmZxtl5yfu4mRkhoZu5gvPvE+xCjAAejEg+vgMik CCHWxLLiytxDjBIczEoivL7AwBbiTUmsrEotyo8vKs1JLT7EKM3BoiTO++pVf4SQQHpiSWp2 ampBahFMlomDU6qBcYZo2rolPyz2BD8VZk1Tcnjx1SbXsiaPrcr9yc8L61r/1k20c3nc0e9X vvpTsvmqrY3VRm1uQYv71370UOe7VLe5+Pdp/h9fMh/OmVJY5lCQKDMreELs0W2TXPo+Sq9V uXtizecHj2P3+Yq/uZPEaJPozLNbWXebS+2u5yV7Gm4edll1+5HcHyWW4oxEQy3mouJEAD48 a79JAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkuLIzCtJLcpLzFFi42Lh2siRohvYMinCYF6vrMXBn22MFq1L3zI5 MHlMW3OeyePzJrkApigum5TUnMyy1CJ9uwSujMcHVjAXTJSv2L56K3MD41GpLkYODgkBE4nJ l8q6GLk4hAQ2Mkrcn/CPrYuRk4NNwEji2/uZLCC2iICBxO/eC4wgNrOAgsTFqbPAbGEBB4mj O28yg9gsAqoS66beA6vnBYp/vn+dFcSWEJCX2NV2EczmBIovPg4xU0jAXuLbn6MsExi5FzAy rGIUy83MKc5NzywwNNQrTsxLySzO1kvOz93ECPYqZ+QOxqcTzQ8xMnFwSjUwrtpuHd6+qfjh Cc0Z4ktvXqvjb3mS55Hksd/x5oG0yJuHnVmStm+ZX9h0JcpZ7Yzi8u6DOu9ClE+s3i1RenJj 9+w0JcPtfhcCM2ecedezyLC9wvfYkbgjM997JTxrd6328w1w/2k/vWRRw/anZ9Q2btN+oD67 IvCgsHn0fKX4tL5JRz77v1bIUmIpzkg01GIuKk4EACj2OXeaAQAA 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)(2980300002)(438002)(199003)(189002)(48376002)(47776003)(76176999)(36756003)(1691005)(50986999)(68736007)(6666003)(356003)(97736004)(92566002)(50466002)(38730400001)(53936002)(6200100001)(189998001)(2950100002)(2906002)(69596002)(1076002)(86362001)(4326007)(450100001)(77096006)(2270400002)(33646002)(5660300001)(5003940100001)(7049001)(8676002)(8936002)(305945005)(81166006)(626004)(81156014)(110136003)(106466001)(50226002)(6862003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB042; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC013; 1:h0rtSqzcv9cSr49l36DGJ9AJjtqIbrbga+r3xWDsbvex2+9KQNRKI53hPYbs8lSLt1O4K0GtzdagzhqAH7EaJbpmeSVjpwKKTsFog+u4BtBuJQZCJlEv7WhnYL6DfpX4CLrl5gN5HxXLfsPEkNjX3HNFZqU/o3xvLZX3YVmRQjz3RBcfwO3mi6zM8VJB6UXf3aGOTcWDhAbhcpWeyOu9q9AZmBn+5bDdvpu2hkseVgnuycPu5Fpjxzl/J1F5Czc4W/Zo4R8ux5RZaU8rlaWxl/dubzXBk1IluG/VrcgRg37Uni92ATl+zIhqyzlDKs0NzQnZF9h2Y+nGxb/q/LmbLAxkSAK6Gt6Zqy2tSfvLQSN5xPuzaYEo786lJ1wJIVYr+kM9uWnoK9bk4Sf25jEbl1+aux5eEQze18xqet80YefxJO56dUvDyaqcTHwTjK9q6Y/SPfvrRXJRK9XFC/wWqdqYl1tgRQ/HI+A9jABAgbGF9ETYqHGM36aFt2fLbJgA X-MS-Office365-Filtering-Correlation-Id: a7dc0e13-a9a8-43ae-8296-08d44b06aee7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB042; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB042; 3:NEM6ebXLyhCSpv0vKrunW+95YmRZkYiFSGi5vbJnxJE1lf3KncB56xn/mR+2PNyQ3bsXBu6cUpMMa6C7M0gPSNVQSvh8QGxZyObLI/L6P1+WaZJWYWCxAUw7K5acsigSbJZWEe6M6VOrXyjR4oLCqfb8nMVkch5zwvaMAcBmwHnvAwZ7y0NfDLZAcfDwSxSouyQxwy1+sGnkwwxa1gGlw1ALn0NyoEzZAoLXiWM4UzlmBAayJpsw+YEbqytICd85GwpgA4/b18k7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+cQiJx6lV5OQKmAk3OX2nK4EScpFPzIdHC9c78WIxWaVEdvIUlbmx5eBWf4p4OQiTi6Jv+t0ohIJCk+kxYJMFeLNJxBcEObLi2OWS5p2FUTpD+fOHAytogX4PeCXeHhLdfvXK5IaZ7Yxq9C8McjvzB6IFNGEjGywo6g0x3riDkgLE/37bY=; 20:aXdV9FPgaqLXKHI2LevV8mBd6VjoSgQaWaCTsdWpzziMnSvd2x/OcH/gf1ovYIa+5tvfJeUhxdQL+N08I9dXZVSM2WCITk/Cfj/j6tFkqy/mhZKu3YcCm2enKWmADrEWF7MeRw/ZUZRNJgSD9f/2l8YNvFOCUOdn2z+3ne/T1KaUMzWsMVEjxyCYhtpjK5I1O7pgJJiRVKbunt0yRmLnt0f6ZXbTKNdl4K6MamdNiH/EncXm4fwM9N4cygxw5GlhZypGFuJl10+tFkL/f+JfND0Ebz760lXWekUElmCA7MzP6PH7SJBbrq0YEtBRMgg+zEaFUI4RP0Q7yDwQQ49hVgBAQ29fwU4/EubqaDuPCBPGDgalgKsZHWZ1b5NvZxK3g6Ca78z8bwbuFcxr9S7s78WZIprWWwLrdXUTj/BN462ScTbputgozxv/MQ62RT1K9D3B4wrFFqRELvouwOMREwwsqepB6zc5Mnlnbybxmoxgqlm1hoLcftz1rAosGSoc 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)(20161123555025)(20161123564025)(20161123562025)(20161123558025)(20161123560025)(6042181)(6072148); SRVR:BY2PR02MB042; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB042; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB042; 4:APSjNelESGy0EZp0Qn+kaG3Bok3rlrQKwN8il+J02pxrJ0MczNRIJzY8z4JpZoHBjdWpH0IupXo2PF7xEdM5QseYQQO/W5jvHYFU1YOiTjTQ0Ml+2sK3mpPc60C7X69rBb1/7PLka8uZehtp7fo5jS2CwdnbDsjJq3AENIkX9tyX20hDToRjsh0AaHezMfAvloaeIq3RcuDovU64UyMNGS5O9XW0gpxMcz/29ExPVoE21jovDgRKltdoD82CzsJyk4UpTmusnaAkXY4gU7bqvEkeGb69fbyIRMp8FrHyjD7MEyTKS9g8MKHaytWHSYffz9ok6KY3ylDb9facZBppTO8yq+mu23xleJQWiDyf7X3VlCENIBjyh96msGYtwRsQahw3uN8UtU8uRshe8o2XyZfDFRENhlrRP6BrL09hdJopNvwY7Eqourvi1PQpsYgzNI5nMNWSnHeh8STvRdCHyXm8nRgmOuo1Jq0N19D5sVs3VxR4enEKCKN1I85mH3aqbgBc7smQ8EKPxAsAU0MrWKWA7WdphRUui4E+vLtgjAqaKiY90SB9Fn9vYeyPkC/4pI3Am437dquvO73n7MvWX/4/XbyhGU1Lj2MPXHRFucsRjw1gup9Zf7PF5xdaaM2vEHchvFHHRRkeD74ZKjM1sjgm6A9nWPgBQYvb/XV7Bin9dNA5w1YNDZ1wGdbdnNWt7mIHMW5PTf73PZncEHSW9TZQktl7YSeoHok60QROkAE= X-Forefront-PRVS: 02065A9E77 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR02MB042; 23:bTOEeD915yU3mN9DfUuynqfOHTcfDN6pKfKh1n7nrB?= =?us-ascii?Q?4bR40i16eZrqxjM9M+YnxCdNAZXojQfX5r3juoN5mIwKpQUGzuEjv7NC0jpD?= =?us-ascii?Q?PTYHzjtJyYJeQQQ7hQgehJTaB5Pp+OOZftvgMlt2USfgPRVjgTUEkFrV6zEG?= =?us-ascii?Q?rEKLREhpzWCtZFqhijnjTAWxmyxd/dNYtcI1vTgG/2+ViyPuvGIs9+gKFiSs?= =?us-ascii?Q?0npgtLaJxsxEKdHizDgYnFy8SotjwJNwZiwfTvXH9tLloEIkhfXgxRG2KbBD?= =?us-ascii?Q?cxtGOIWkxXfTcakmjuOC7Gzd1ezmsua8euqIJxCFM3pfJtDME1us96jh0aI2?= =?us-ascii?Q?kRhaymSKnj44O2gYWf39AYh/98Dd92yyhKN5GFXk+zQbjN9nkbQqeQXJ9fxq?= =?us-ascii?Q?dPs0q61nSm8tDiGoyZ1SxrugPipBz9+RHZ6v4oqMmg9lc7ackav09vFgYqMa?= =?us-ascii?Q?DnJFi1l7PT9ytDttyFSNxNxyrHtdfU+agEWsRT+1oVbo1w+S0AGVLfu9NV2I?= =?us-ascii?Q?+V56JThTN/pFN9x82D0wILMiJ1a+K3oTfGLSi5fgGuQmYKSAUzZNQxrYJId8?= =?us-ascii?Q?URwKc6UtObHxBDoqa4320bSEj0f5yEby5JmnJcH7PkFLvdaCckExxxA8w9s3?= =?us-ascii?Q?QveUPtw0Yogy2DzzcT1Gukt+v5T6vhe19v/B2kIs8S7uFtZESlHVs23AByW7?= =?us-ascii?Q?sNqMWlvN639w26nrPU108/njTtoI8zsbH+oD8TJ3YLSnnvmETJHhzSVzYPHg?= =?us-ascii?Q?L3P39vqKdX6ILGre4K9gZ5VQ6R9xxnvPL8PsHBYh+YVQtaRoCPTX3gUJINXl?= =?us-ascii?Q?9mXkf/i0dkiLXjeR46rfqcSsIHha2zyz5wmWTHrXMRIB48TirwPtVNWweo2Y?= =?us-ascii?Q?ijh+lOO78pyS5IEq3zHs5I3gu/JfO+Ewu4i7dlefS3pN8JtC6IVqiwQuggkD?= =?us-ascii?Q?w65JY8n0LeiiEWE8otu5ArmyxDXV1KnPxffYIR36z5yzfTl71UrD3mMeDm+P?= =?us-ascii?Q?HJHz9AHReWcj3fLmGP8bcudAvzBd400luFgxM6DD31fftlP0mKPf3MxCqzXQ?= =?us-ascii?Q?snscr/syTnaE30X/WO7u08MB1HvpoNEPBg245VMdSUly9CsQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB042; 6:WGU3EUivh3ledQ3iIIjHIUUVI6JCFxa5yVvuA/DmOd+6jyPq5oxAs7E4G4qm88Xd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flotg8F7jX7O+/qs7ZSPsGs6YXnO7fHE8o72mnP90pu4HT1vfU0Jih/nh7zdTZIqj53/Bv9X9jFK3y2tMTO0cZum7/NP4Tk4lKnSiDvEdFeSICeo1gqnHvmNePNoyKZr+amsG2omLTRx5KK2RQ1DaDt8GiyqFexTXBiTQEbR2DYyd0L6gSsmhM6pVx0c4g== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 00:59:04.2221 (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: BY2PR02MB042 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 The patch that reworks task management function handling guarantees that target_remove_from_state_list() is always called with CMD_T_BUSY cleared. Since that function is the only function that tests that flag this means that that flag is now superfluous. Hence remove that flag. Signed-off-by: Bart Van Assche Reviewed-by: Andy Grover Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Reviewed-by: Hannes Reinecke --- drivers/target/target_core_sbc.c | 2 +- drivers/target/target_core_transport.c | 12 ++++-------- include/target/target_core_base.h | 1 - 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c index 4879e70e2eef..2eca544c7392 100644 --- a/drivers/target/target_core_sbc.c +++ b/drivers/target/target_core_sbc.c @@ -600,7 +600,7 @@ static sense_reason_t compare_and_write_callback(struct se_cmd *cmd, bool succes spin_lock_irq(&cmd->t_state_lock); cmd->t_state = TRANSPORT_PROCESSING; - cmd->transport_state |= CMD_T_ACTIVE|CMD_T_BUSY|CMD_T_SENT; + cmd->transport_state |= CMD_T_ACTIVE | CMD_T_SENT; spin_unlock_irq(&cmd->t_state_lock); __target_execute_cmd(cmd, false); diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 68dbb32858c3..18cc0730f33c 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -591,9 +591,6 @@ static void target_remove_from_state_list(struct se_cmd *cmd) if (!dev) return; - if (cmd->transport_state & CMD_T_BUSY) - return; - spin_lock_irqsave(&dev->execute_task_lock, flags); if (cmd->state_active) { list_del(&cmd->state_list); @@ -735,7 +732,6 @@ void target_complete_cmd(struct se_cmd *cmd, u8 scsi_status) cmd->scsi_status = scsi_status; spin_lock_irqsave(&cmd->t_state_lock, flags); - cmd->transport_state &= ~CMD_T_BUSY; if (dev && dev->transport->transport_complete) { dev->transport->transport_complete(cmd, @@ -1803,7 +1799,7 @@ void __target_execute_cmd(struct se_cmd *cmd, bool do_checks) return; err: spin_lock_irq(&cmd->t_state_lock); - cmd->transport_state &= ~(CMD_T_BUSY|CMD_T_SENT); + cmd->transport_state &= ~CMD_T_SENT; spin_unlock_irq(&cmd->t_state_lock); transport_generic_request_failure(cmd, ret); @@ -1831,7 +1827,7 @@ static int target_write_prot_action(struct se_cmd *cmd) sectors, 0, cmd->t_prot_sg, 0); if (unlikely(cmd->pi_err)) { spin_lock_irq(&cmd->t_state_lock); - cmd->transport_state &= ~(CMD_T_BUSY|CMD_T_SENT); + cmd->transport_state &= ~CMD_T_SENT; spin_unlock_irq(&cmd->t_state_lock); transport_generic_request_failure(cmd, cmd->pi_err); return -1; @@ -1920,7 +1916,7 @@ void target_execute_cmd(struct se_cmd *cmd) } cmd->t_state = TRANSPORT_PROCESSING; - cmd->transport_state |= CMD_T_ACTIVE|CMD_T_BUSY|CMD_T_SENT; + cmd->transport_state |= CMD_T_ACTIVE | CMD_T_SENT; spin_unlock_irq(&cmd->t_state_lock); if (target_write_prot_action(cmd)) @@ -1928,7 +1924,7 @@ void target_execute_cmd(struct se_cmd *cmd) if (target_handle_task_attr(cmd)) { spin_lock_irq(&cmd->t_state_lock); - cmd->transport_state &= ~(CMD_T_BUSY | CMD_T_SENT); + cmd->transport_state &= ~CMD_T_SENT; spin_unlock_irq(&cmd->t_state_lock); return; } diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 9fcdd5ea2d02..de993c03a625 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -488,7 +488,6 @@ struct se_cmd { #define CMD_T_SENT (1 << 4) #define CMD_T_STOP (1 << 5) #define CMD_T_DEV_ACTIVE (1 << 7) -#define CMD_T_BUSY (1 << 9) #define CMD_T_TAS (1 << 10) #define CMD_T_FABRIC_STOP (1 << 11) spinlock_t t_state_lock;