Commit b2c9652e authored by Bart Van Assche's avatar Bart Van Assche Committed by Nicholas Bellinger

target: Remove command flag CMD_T_DEV_ACTIVE

The code that tests the CMD_T_DEV_ACTIVE flag has been removed. Hence
also remove the flag itself.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarAndy Grover <agrover@redhat.com>
Reviewed-by: default avatarSagi Grimberg <sagig@mellanox.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent fd5e64de
...@@ -1223,7 +1223,6 @@ void transport_init_se_cmd( ...@@ -1223,7 +1223,6 @@ void transport_init_se_cmd(
init_completion(&cmd->cmd_wait_comp); init_completion(&cmd->cmd_wait_comp);
spin_lock_init(&cmd->t_state_lock); spin_lock_init(&cmd->t_state_lock);
kref_init(&cmd->cmd_kref); kref_init(&cmd->cmd_kref);
cmd->transport_state = CMD_T_DEV_ACTIVE;
cmd->se_tfo = tfo; cmd->se_tfo = tfo;
cmd->se_sess = se_sess; cmd->se_sess = se_sess;
......
...@@ -488,7 +488,6 @@ struct se_cmd { ...@@ -488,7 +488,6 @@ struct se_cmd {
#define CMD_T_COMPLETE (1 << 2) #define CMD_T_COMPLETE (1 << 2)
#define CMD_T_SENT (1 << 4) #define CMD_T_SENT (1 << 4)
#define CMD_T_STOP (1 << 5) #define CMD_T_STOP (1 << 5)
#define CMD_T_DEV_ACTIVE (1 << 7)
#define CMD_T_TAS (1 << 10) #define CMD_T_TAS (1 << 10)
#define CMD_T_FABRIC_STOP (1 << 11) #define CMD_T_FABRIC_STOP (1 << 11)
spinlock_t t_state_lock; spinlock_t t_state_lock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment