From patchwork Wed Feb 8 22:24:57 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: 9563627 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 BD1E06020F for ; Wed, 8 Feb 2017 22:27:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 913C12840B for ; Wed, 8 Feb 2017 22:27:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 863D72852C; Wed, 8 Feb 2017 22:27: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.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 3601B2840B for ; Wed, 8 Feb 2017 22:27:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751670AbdBHW1b (ORCPT ); Wed, 8 Feb 2017 17:27:31 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:63832 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751756AbdBHW10 (ORCPT ); Wed, 8 Feb 2017 17:27:26 -0500 X-IronPort-AV: E=Sophos;i="5.35,348,1483977600"; d="scan'208";a="76618024" Received: from unknown (HELO milsmgep15.sandisk.com) ([63.163.107.21]) by ob1.hgst.iphmx.com with ESMTP; 09 Feb 2017 06:28:20 +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 25.54.57638.ACA9B985; Wed, 8 Feb 2017 14:25:14 -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-f7-589b9acaea9c Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id C6.42.18148.7CA9B985; Wed, 8 Feb 2017 14:25:11 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: Subject: [PATCH v4 27/37] target: Remove command flag CMD_T_DEV_ACTIVE Date: Wed, 8 Feb 2017 14:24:57 -0800 Message-ID: <20170208222507.25715-28-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+NgFtrBLMWRmVeSWpSXmKPExsXCddJ5ke6pWbMjDDq6dSxal75lcmD0+LxJ LoAxissmJTUnsyy1SN8ugSvjx9HFrAVruCum/J7F1MB4i7OLkZNDQsBE4vrOFqYuRi4OIYGl TBJzdy9kBEkICWxllDi12xOmaPH/n6wQRRsZJZrf9rGAJNgEjCS+vZ8JZosIGEj87r0A1sws oCSxZ+oyJhBbWMBN4lfPYzCbRUBFoqtjC1g9r4CDxI6Ln5khFshL7Gq7yApicwLFJ7x8BnWE vcSrA18YQRZLCFxnkdjwciUbRLOgxMmZT1gglklIHHzxghmiQV3i5JL5TBMYhWYhKZuFpGwB I9MqRrHczJzi3PTUAkNTveLEvJTM4my95PzcTYyQ8MzcwXj3ifchRgEORiUe3grL2RFCrIll xZW5hxglOJiVRHhTpgGFeFMSK6tSi/Lji0pzUosPMUpzsCiJ856TmRohJJCeWJKanZpakFoE k2Xi4JRqYCyNDfGby9Bofna9VJbjnnmy3KsS82PqFQqnVy2zbVS4fzBfbtpZ1dUrVV75rj9z I/IGp+32E8lrHD6Eu1r+ahfSFf937uCpTwaR3Z0fGjlvfXqd22que1TqZ9U5P47MSYXPtjfx v7uhzTpJ84N2U7loYpPyj4/+dV0K68Q5F+VNerNIgYW/XomlOCPRUIu5qDgRAETtaZdLAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgkuLIzCtJLcpLzFFi42Lh2sjJpnt81uwIg4bPphYHf7YxWrQufcvk wOQxbc15Jo/Pm+QCmKK4bFJSczLLUov07RK4Mn4cXcxasIa7YsrvWUwNjLc4uxg5OSQETCQW ///J2sXIxSEksJ5RYn//a2aQBJuAkcS39zNZQGwRAQOJ370XGEFsZgEFiYtTZ4HZwgJuEr96 HjOB2CwCqhKXVv0Fi/MKOEg03n/JCLFAXmJX20VWEJsTKD7h5TOwuJCAvcSrA18YJzByL2Bk WMUolpuZU5ybnllgaKRXnJiXklmcrZecn7uJEeLXqB2M1yeaH2Jk4uCUamDUsrbaqDvr/N2A pnfVLTev6ui8DA65tNk2awn7Ftfg+w0RFxfvULlcOiukvaPZzGNrx8kVPHWTuKsLus+/M+nY tn9/k83TKMWvPLskohiNMufvqfteG25d+/eMm90ZLxVtz/a3y81+vZ1b9zN9hcnFBS/5ZziX 5X43Ki5YqfxI9cvUgoXeDxyVWIozEg21mIuKEwHo9E26mwEAAA== 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 the CMD_T_DEV_ACTIVE flag has been removed. Hence also remove the flag itself. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Andy Grover Reviewed-by: Sagi Grimberg Reviewed-by: Hannes Reinecke --- drivers/target/target_core_transport.c | 1 - include/target/target_core_base.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 646e051d87bf..43b49f87dd22 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -1231,7 +1231,6 @@ void transport_init_se_cmd( spin_lock_init(&cmd->t_state_lock); kref_init(&cmd->cmd_kref); atomic_set(&cmd->tgt_ref, 1); - cmd->transport_state = CMD_T_DEV_ACTIVE; cmd->se_tfo = tfo; cmd->se_sess = se_sess; diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 67cb16302fca..791bf4774030 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_DEV_ACTIVE (1 << 7) #define CMD_T_TAS (1 << 10) #define CMD_T_FABRIC_STOP (1 << 11) spinlock_t t_state_lock;