]> git.baikalelectronics.ru Git - kernel.git/commit
target: Remove se_session.sess_wait_list
authorRoland Dreier <roland@purestorage.com>
Mon, 16 Jul 2012 18:04:42 +0000 (11:04 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:35:27 +0000 (17:35 -0700)
commit708ba22a65e3ce477cf76dc4dc9d2425bad4c0db
tree2c2d7f46ab88c31f3b347394ef0d51eb9d11ab8c
parentf5fe1e1782b1b39e333d62050cdcdb444c46e255
target: Remove se_session.sess_wait_list

Since we set se_session.sess_tearing_down and stop new commands from
being added to se_session.sess_cmd_list before we wait for commands to
finish when freeing a session, there's no need for a separate
sess_wait_list -- if we let new commands be added to sess_cmd_list
after setting sess_tearing_down, that would be a bug that breaks the
logic of waiting in-flight commands.

Also rename target_splice_sess_cmd_list() to
target_sess_cmd_list_set_waiting(), since we are no longer splicing
onto a separate list.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/qla2xxx/tcm_qla2xxx.c
drivers/target/target_core_transport.c
include/target/target_core_base.h
include/target/target_core_fabric.h