target: make more use of the task_flags field in se_task
authorChristoph Hellwig <hch@infradead.org>
Wed, 12 Oct 2011 15:07:03 +0000 (11:07 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:21:06 +0000 (03:21 +0000)
commit6c76bf951cb099f5573954b1f56c1121c3a41c72
treee9b739b4fb28ae7e2be2fdf400dc4772d63360b8
parent42bf829eee0e36371a3df43978b14572c716cbe7
target: make more use of the task_flags field in se_task

Replace various atomic_t variables that were mostly under t_state_lock
with new flags in task_flags.  Note that the execution error path
didn't take t_state_lock before, so add it there.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_tmr.c
drivers/target/target_core_transport.c
include/target/target_core_base.h