From patchwork Fri Feb 10 01:28:44 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: 9565787 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 1B39F60572 for ; Fri, 10 Feb 2017 01:29:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C2D328532 for ; Fri, 10 Feb 2017 01:29:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 012E32853B; Fri, 10 Feb 2017 01:29:40 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 A7A6D28532 for ; Fri, 10 Feb 2017 01:29:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751457AbdBJB3j (ORCPT ); Thu, 9 Feb 2017 20:29:39 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:36294 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751444AbdBJB3f (ORCPT ); Thu, 9 Feb 2017 20:29:35 -0500 X-IronPort-AV: E=Sophos;i="5.33,348,1477929600"; d="scan'208";a="82349540" Received: from unknown (HELO milsmgep15.sandisk.com) ([63.163.107.21]) by ob1.hgst.iphmx.com with ESMTP; 10 Feb 2017 09:29:01 +0800 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 61.97.57638.C571D985; Thu, 9 Feb 2017 17:29:01 -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.319.2; Thu, 9 Feb 2017 17:28:56 -0800 X-AuditID: 0ac94369-26dee9800001e126-01-589d175c1d57 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 07.9F.11415.7571D985; Thu, 9 Feb 2017 17:28:55 -0800 (PST) From: Bart Van Assche To: "Nicholas A . Bellinger" CC: , Bart Van Assche , Christoph Hellwig , David Disseldorp Subject: [PATCH v5 14/22] target: Remove command flag CMD_T_TAS Date: Thu, 9 Feb 2017 17:28:44 -0800 Message-ID: <20170210012852.15735-15-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170210012852.15735-1-bart.vanassche@sandisk.com> References: <20170210012852.15735-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5kW6s+NwIg+ezeCy+/p/OYrFy9VEm i7bVZxgtWpe+ZXJg8bi//QiTx+6bDWwem09Xe3zeJBfAEsVlk5Kak1mWWqRvl8CV8fxsO0vB We6KaTOnMjYwvubsYuTkkBAwkXjx/ThbFyMXh5DAUiaJ1VPns0M42xkl7i5pZYep+rNnNgtE YiOjxNs+EIeTg03ASOLb+5lgtgiQvbpnGRNIEbPANEaJnsvnGUESwgL2EmvbH7F2MXJwsAio SEyeZQwS5hVwkJi5eBkbxAJ5iV1tF1lBbE6g+KvZ18HKhYBad+wyABkpIdDEKnH4yF82iF5B iZMzn4DtZRaQkDj44gUziC0koC5xcsl8pgmMQrOQlM1CUraAkWkVo1huZk5xbnpqgaGpXnFi XkpmcbZecn7uJkZIYGfuYLz7xPsQowAHoxIP74uaORFCrIllxZW5hxglOJiVRHjv882NEOJN SaysSi3Kjy8qzUktPsQozcGiJM57TmZqhJBAemJJanZqakFqEUyWiYNTqoFx5RTZhltG82oX 6Yf1eh19bJt2b4fJ/8i+eaLhfTMWRTxWXD4ny9hJiH2BkIr8T765Uh9bVt6OtTY+n9pW0Zt9 xWmqueBv5UWvqpXElvI+KYvb6yT7+nrPlDjm0L4fM08vX/AvNeOcb8y7K7tmBUnP0eI4EMew mEdi9ww+CYkpv/dIMCSd1pJSYinOSDTUYi4qTgQAFhBStGgCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJMWRmVeSWpSXmKPExsXCtZGTTTdcfG6EwePZChYHf7YxWnz9P53F YuXqo0wWbavPMFq0Ln3L5MDqcX/7ESaP3Tcb2DymrTnP5LH5dLXH501yAaxRXDYpqTmZZalF +nYJXBnPz7azFJzlrpg2cypjA+Nrzi5GTg4JAROJP3tms3QxcnEICaxnlHh1ZSo7SIJNwEji 2/uZLCC2CJC9umcZE0gRs8A0Rokrr6awgiSEBewl1rY/ArNZBFQl5pxczwxi8wo4SKz+1sIK sUFeYlfbRTCbEyj+avZ1IJsDaJu9xI5dBhMYuRcwMqxiFMvNzCnOTc8sMDTUK07MS8ksztZL zs/dxAgJiMgdjE8nmh9iZOLglGpgnPzIXGHumXhW1e1FHgo7Egp6f39Zo8nq3cTLIF676jqL 7+l2l5uqfhUvQuSWflPcU5B1Vynicogr57Qfj4+qHz1SsvuIsviFhabx5gzvIx9qnLJW/avu duJGh+rN3953rP7dbp+XOOmPf5tMPDfXlcWxGb0fbjH0/N4ma+fte9TY61yZlvRMJZbijERD Leai4kQAd2K2A7gBAAA= MIME-Version: 1.0 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 code that tests this flag has been removed by the previous patch. Hence also remove the flag itself. Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Cc: Nicholas A. Bellinger Cc: Christoph Hellwig Cc: David Disseldorp --- drivers/target/target_core_tmr.c | 4 ---- include/target/target_core_base.h | 1 - 2 files changed, 5 deletions(-) diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c index c8f231d0664a..7968611f8a1d 100644 --- a/drivers/target/target_core_tmr.c +++ b/drivers/target/target_core_tmr.c @@ -115,10 +115,6 @@ static bool __target_check_io_state(struct se_cmd *se_cmd, return false; } se_cmd->transport_state |= CMD_T_ABORTED; - - if ((tmr_sess != se_cmd->se_sess) && tas) - se_cmd->transport_state |= CMD_T_TAS; - spin_unlock(&se_cmd->t_state_lock); return kref_get_unless_zero(&se_cmd->cmd_kref); diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index d7c0e7ecc601..8b0dca1c57a8 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -487,7 +487,6 @@ struct se_cmd { #define CMD_T_COMPLETE (1 << 2) #define CMD_T_SENT (1 << 4) #define CMD_T_STOP (1 << 5) -#define CMD_T_TAS (1 << 10) #define CMD_T_FABRIC_STOP (1 << 11) spinlock_t t_state_lock; struct kref cmd_kref;