From patchwork Wed Feb 15 00:26:07 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: 9573105 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 BF25E600F6 for ; Wed, 15 Feb 2017 00:26:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0F86267EC for ; Wed, 15 Feb 2017 00:26:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A42AC26E94; Wed, 15 Feb 2017 00:26: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 F1108283F4 for ; Wed, 15 Feb 2017 00:26:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751429AbdBOA0z (ORCPT ); Tue, 14 Feb 2017 19:26:55 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:61609 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751208AbdBOA0x (ORCPT ); Tue, 14 Feb 2017 19:26:53 -0500 X-IronPort-AV: E=Sophos;i="5.33,348,1477929600"; d="scan'208";a="86867931" Received: from unknown (HELO milsmgep14.sandisk.com) ([63.163.107.225]) by ob1.hgst.iphmx.com with ESMTP; 15 Feb 2017 08:26:22 +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 D2.FB.18895.E20A3A85; Tue, 14 Feb 2017 16:26:22 -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; Tue, 14 Feb 2017 16:26:16 -0800 X-AuditID: 0ac94371-0fadb980000049cf-41-58a3a02ebf08 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id C2.8D.11415.720A3A85; Tue, 14 Feb 2017 16:26:15 -0800 (PST) From: Bart Van Assche To: "Nicholas A . Bellinger" CC: , Bart Van Assche , Christoph Hellwig , David Disseldorp Subject: [PATCH v6 28/33] target: Remove command flag CMD_T_TAS Date: Tue, 14 Feb 2017 16:26:07 -0800 Message-ID: <20170215002612.14566-29-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170215002612.14566-1-bart.vanassche@sandisk.com> References: <20170215002612.14566-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsXCddJ5ka7egsURBn8nKFh8/T+dxWLl6qNM Fm2rzzBatC59y+TA4nF/+xEmj903G9g8Np+u9vi8SS6AJYrLJiU1J7MstUjfLoErY17jJ9aC u9wVr75sYm9g/MnZxcjJISFgIjF75TSmLkYuDiGBpUwS9xa8gnJ2MEq0nvvNBlPVvHgjC0Ri I6PEvpWvwRJsAkYS397PZAGxRYDs1T3LwLqZBaYxSvRcPs8IkhAWsJdoPL0drIFFQFWiacIS MJtXwEHi6ZGLTBAb5CV2tV1kBbE5geIzdpwEGsoBtM1e4tEZa5CZEgJNrBJXn+1hhugVlDg5 8wnYYmYBCYmDL16AxYUE1CVOLpnPNIFRaBaSsllIyhYwMq1iFMvNzCnOTU8tMDTRK07MS8ks ztZLzs/dxAgJ7cIdjK9vex9iFOBgVOLhPSG7OEKINbGsuDL3EKMEB7OSCC9bPVCINyWxsiq1 KD++qDQntfgQozQHi5I4b5bs1AghgfTEktTs1NSC1CKYLBMHp1QDY2lKsNrPnXqqxW9aZ9vv T53S/r8oY9aauAfbioKSltvuPTTv+6+Hj7ctZ95++vxupmfLOtgseA/G6E18f+dBD7NzZlnR Wuad+jNjjz5MbPGepnvacl/mi89P+u7Mf1/6+J7Eg9335fjKPJ+enyi+vnZy2SXm4DVBz/wf ng5UNwusDQqzs/Z5xKLEUpyRaKjFXFScCADtW/UiaQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJMWRmVeSWpSXmKPExsXCtZGTTVd9weIIg4ZPhhYHf7YxWnz9P53F YuXqo0wWbavPMFq0Ln3L5MDqcX/7ESaP3Tcb2DymrTnP5LH5dLXH501yAaxRXDYpqTmZZalF +nYJXBnzGj+xFtzlrnj1ZRN7A+NPzi5GTg4JAROJ5sUbWboYuTiEBNYzStz92swGkmATMJL4 9n4mC4gtAmSv7lnGBFLELDCNUeLKqymsIAlhAXuJxtPbwRpYBFQlmiYsAbN5BRwkTm7qYIHY IC+xq+0iWD0nUHzGjpNAcQ6gbfYSj85YT2DkXsDIsIpRLDczpzg3PbPA0FCvODEvJbM4Wy85 P3cTIyQgIncwPp1ofoiRiYNTqoGxaK/eB+MHG+QNGKMezq1gE5COr/d8WBLJvo9tT3fTfhnr jVdlf+ofSdA9tntSnafSviuKR02q9bVXBjLHldxVaL+VJJ6wobaz/VHj56gZQqsFY6Z06HwL cpgerPX2f7FF7h/dlTkzxCYXTrvLeCD0GV9wgsMazyfzmMJW2Hc46+le85BUclFiKc5INNRi LipOBADIIQqkuAEAAA== 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 22fce906ea17..299874a964e3 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, u32 skip_flags, 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 f847c4113df9..cb81cd929a4b 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;