From patchwork Wed Feb 8 22:24:59 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: 9563637 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 84BCB6020F for ; Wed, 8 Feb 2017 22:27:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58D9E284F2 for ; Wed, 8 Feb 2017 22:27:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C4662852C; Wed, 8 Feb 2017 22:27:57 +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 C93E4284F2 for ; Wed, 8 Feb 2017 22:27:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752001AbdBHW1z (ORCPT ); Wed, 8 Feb 2017 17:27:55 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:63858 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751603AbdBHW1w (ORCPT ); Wed, 8 Feb 2017 17:27:52 -0500 X-IronPort-AV: E=Sophos;i="5.35,348,1483977600"; d="scan'208";a="76618183" Received: from unknown (HELO milsmgep15.sandisk.com) ([63.163.107.21]) by ob1.hgst.iphmx.com with ESMTP; 09 Feb 2017 06:28:21 +0800 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 56.54.57638.BCA9B985; Wed, 8 Feb 2017 14:25:15 -0800 (PST) Received: from milsmgip12.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, 8 Feb 2017 14:25:11 -0800 X-AuditID: 0ac94369-26dee9800001e126-fb-589b9acb030d Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 57.42.18148.7CA9B985; Wed, 8 Feb 2017 14:25:11 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , "Nicholas A . Bellinger" , Christoph Hellwig , David Disseldorp Subject: [PATCH v4 29/37] target: Remove command flag CMD_T_TAS Date: Wed, 8 Feb 2017 14:24:59 -0800 Message-ID: <20170208222507.25715-30-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170208222507.25715-1-bart.vanassche@sandisk.com> References: <20170208222507.25715-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsXCddJ5ke7pWbMjDD5vUbL4+n86i8XK1UeZ LNpWn2G0aF36lsmBxeP+9iNMHrtvNrB5bD5d7fF5k1wASxSXTUpqTmZZapG+XQJXxtdtExkL znJXTPv4hq2B8TVnFyMnh4SAicSMh2uZuxi5OIQEljJJfLhwiBkkISSwlVHi1G5PmKI/u5cz QhRtZJT4fusBG0iCTcBI4tv7mSwgtoiAgcTv3gtgRcwCMxgl3mx9BpYQFrCXmPjxLiuIzSKg ItHy/S0TiM0r4CCxbckdRogN8hK72i6C1XACxSe8fMYIcYW9xKsDX8CGSgg0sUrcWPybFaJZ UOLkzCdgC5gFJCQOvngBdba6xMkl85kmMArNQlI2C0nZAkamVYxiuZk5xbnpqQWGpnrFiXkp mcXZesn5uZsYIaGduYPx7hPvQ4wCHIxKPLwVlrMjhFgTy4orcw8xSnAwK4nwpkwDCvGmJFZW pRblxxeV5qQWH2KU5mBREuc9JzM1QkggPbEkNTs1tSC1CCbLxMEp1cAodfB7G69ed/qPZ6ox MydJqSnvK99SuqS/OEvW8+SdmrySIysfHczlCiyrMDgacnuVXtz77T4nLzc/DPjgU2LXK3js q6Zyxg6tuJQr/9//kK4tkdfhcfiR8X7GLddg1bWLZn0/2uZevuF+jIJDUZBI1OH7D/9dZ1Lo zVzPGeSx+mUxw5/yHD4lluKMREMt5qLiRAC9ITx6aQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGJMWRmVeSWpSXmKPExsXCtZGTTff4rNkRBo8bLSwO/mxjtPj6fzqL xcrVR5ks2lafYbRoXfqWyYHV4/72I0weu282sHlMW3OeyWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDK+bpvIWHCWu2LaxzdsDYyvObsYOTkkBEwk/uxeztjFyMUhJLCeUWLLtl52kASbgJHE t/czWUBsEQEDid+9F8CKmAVmMErMfLGACSQhLGAvMfHjXVYQm0VAVeLPsvVgcV4BB4mFh/ax QWyQl9jVdhGshhMoPuHlM0YQWwio99WBL4wTGLkXMDKsYhTLzcwpzk3PLDA00itOzEvJLM7W S87P3cQICYmoHYzXJ5ofYmTi4JRqYCydbN+8NkYua9p986bTNRpMLCeP2Qc6Pk/iviPv2/U+ 8lXk7L8nzv26Nsv9/nR5teuN7ru6v7lcL9MStJOuExfbbGxpfTdA5uGJD0/56tU3eM9meih9 St7hvVOO7JkbQeaaq/emMBaf/xLBceixX0bS/hn3PRSc+MX667sbJEv+166IC7p1W4mlOCPR UIu5qDgRAFU368O5AQAA 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 b31735c77621..635d1704e676 100644 --- a/drivers/target/target_core_tmr.c +++ b/drivers/target/target_core_tmr.c @@ -114,10 +114,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 791bf4774030..ecb173a5d442 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;