target: remove the transport_lun_active field in struct se_cmd
authorChristoph Hellwig <hch@infradead.org>
Wed, 21 Dec 2011 19:14:05 +0000 (14:14 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 25 Feb 2012 22:37:46 +0000 (14:37 -0800)
commit3d26fea01d5f80e3e585d69d8d73a60e1ca563a0
tree6955955e14533854f9e9eaae7b7475e819bc53d5
parent7d680f3b74dd6f0f57569eeeee8c257790ceaa96
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>
drivers/target/target_core_device.c
drivers/target/target_core_transport.c
include/target/target_core_base.h