target: Remove command flag CMD_T_DEV_ACTIVE
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 5 Jun 2015 23:17:51 +0000 (16:17 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 9 Feb 2017 08:39:16 +0000 (00:39 -0800)
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 <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andy Grover <agrover@redhat.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c
include/target/target_core_base.h

index 012ed95c3f40e08e93f864ca08c59ab3e4c5491b..22190003534dbcc28ab027af0b21353fcff13ab9 100644 (file)
@@ -1223,7 +1223,6 @@ void transport_init_se_cmd(
        init_completion(&cmd->cmd_wait_comp);
        spin_lock_init(&cmd->t_state_lock);
        kref_init(&cmd->cmd_kref);
-       cmd->transport_state = CMD_T_DEV_ACTIVE;
 
        cmd->se_tfo = tfo;
        cmd->se_sess = se_sess;
index 7b350fd60cdbe03146dea8f30d781762e332cdd9..d7336f3c6b600a2732bc96db9f1c8c7c2c289f7c 100644 (file)
@@ -488,7 +488,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;