]> git.baikalelectronics.ru Git - kernel.git/commit
qla2xxx: Get rid of redundant qla_tgt_sess.tearing_down
authorRoland Dreier <roland@purestorage.com>
Mon, 16 Jul 2012 18:04:36 +0000 (11:04 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:35:25 +0000 (17:35 -0700)
commit17c4c1be7af6ec6ee0b1d1869021c4649372f728
treedebc4d50a02a41ef33fe73a87aad3ddd68a9d835
parent8277afdc1df4f1c194f8a2636d460e05dcb7bf55
qla2xxx: Get rid of redundant qla_tgt_sess.tearing_down

The only place that sets qla_tgt_sess.tearing_down calls
target_splice_sess_cmd_list() immediately afterwards, without dropping
the lock it holds.  That function sets se_session.sess_tearing_down,
so we can get rid of the qla_target-specific flag, and in the one
place that looks at the qla_tgt_sess.tearing_down flag just test
se_session.sess_tearing_down instead.

Cc: Chad Dupuis <chad.dupuis@qlogic.com>
Cc: Arun Easi <arun.easi@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/qla2xxx/qla_target.c
drivers/scsi/qla2xxx/qla_target.h
drivers/scsi/qla2xxx/tcm_qla2xxx.c