]> git.baikalelectronics.ru Git - kernel.git/commit
target: make the se_task task_state_active a normal bool
authorChristoph Hellwig <hch@infradead.org>
Wed, 23 Nov 2011 11:54:36 +0000 (06:54 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 14 Dec 2011 11:27:02 +0000 (11:27 +0000)
commit32f276d927713127ce460600d71be896e7506c40
treefb3815bf85679116bb455ded1a678049950a3d9f
parent147c9a051dacbcd4df5438e9aa9b76f12b0e9f65
target: make the se_task task_state_active a normal bool

There is no need to make task_state_active an atomic_t given that it is
always set under the execute_task_lock so we can make it a simple bool.
Also rename it to t_state_active to be closer to the list it guards,
and make sure all checks before the list addion/removal actually happen
under execute_task_lock.

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