diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-12-21 20:14:05 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-02-25 23:37:46 +0100 |
commit | 3d26fea01d5f80e3e585d69d8d73a60e1ca563a0 (patch) | |
tree | 6955955e14533854f9e9eaae7b7475e819bc53d5 /include/target | |
parent | target: replace various cmd flags with a transport state (diff) | |
download | linux-3d26fea01d5f80e3e585d69d8d73a60e1ca563a0.tar.xz linux-3d26fea01d5f80e3e585d69d8d73a60e1ca563a0.zip |
target: remove the transport_lun_active field in struct se_cmd
There is no reason to have a flag telling if a command is on the per-lun list,
we can simply do a list_empty check before removing it as long as we're careful
to always use list_del_init.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_base.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 9e7a6a5451c2..5b7d5f3dd24c 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -572,7 +572,6 @@ struct se_cmd { #define CMD_T_LUN_STOP (1 << 7) #define CMD_T_LUN_FE_STOP (1 << 8) #define CMD_T_DEV_ACTIVE (1 << 9) - atomic_t transport_lun_active; spinlock_t t_state_lock; struct completion t_transport_stop_comp; struct completion transport_lun_fe_stop_comp; |