]> git.baikalelectronics.ru Git - kernel.git/commit
tcm_qla2xxx: Fix incorrect use of __transport_register_session
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 20 Mar 2015 05:25:16 +0000 (22:25 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 20 Mar 2015 06:14:14 +0000 (23:14 -0700)
commit03653d3973d35a71c4b5cc6ca826a29f5dc96994
treec3e8c5f306f4df346ee6ba6700d07eca2760bb1e
parentb9d44a766ff2d80cae0d60e30fb059651c3e3264
tcm_qla2xxx: Fix incorrect use of __transport_register_session

This patch fixes the incorrect use of __transport_register_session()
in tcm_qla2xxx_check_initiator_node_acl() code, that does not perform
explicit se_tpg->session_lock when accessing se_tpg->tpg_sess_list
to add new se_sess nodes.

Given that tcm_qla2xxx_check_initiator_node_acl() is not called with
qla_hw->hardware_lock held for all accesses of ->tpg_sess_list, the
code should be using transport_register_session() instead.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Cc: Quinn Tran <quinn.tran@qlogic.com>
Cc: <stable@vger.kernel.org> # 3.5+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/qla2xxx/tcm_qla2xxx.c