Skip to content

Commit b2c9652

Browse files
Bart Van AsscheNicholas Bellinger
authored andcommitted
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: 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>
1 parent fd5e64d commit b2c9652

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/target/target_core_transport.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,6 @@ void transport_init_se_cmd(
12231223
init_completion(&cmd->cmd_wait_comp);
12241224
spin_lock_init(&cmd->t_state_lock);
12251225
kref_init(&cmd->cmd_kref);
1226-
cmd->transport_state = CMD_T_DEV_ACTIVE;
12271226

12281227
cmd->se_tfo = tfo;
12291228
cmd->se_sess = se_sess;

‎include/target/target_core_base.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ struct se_cmd {
488488
#define CMD_T_COMPLETE (1 << 2)
489489
#define CMD_T_SENT (1 << 4)
490490
#define CMD_T_STOP (1 << 5)
491-
#define CMD_T_DEV_ACTIVE (1 << 7)
492491
#define CMD_T_TAS (1 << 10)
493492
#define CMD_T_FABRIC_STOP (1 << 11)
494493
spinlock_t t_state_lock;

0 commit comments

Comments
 (0)