Message ID | 20170208222507.25715-28-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
On Wed, 2017-02-08 at 14:24 -0800, Bart Van Assche wrote: > 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> Applied. -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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;