aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorJörn Engel <joern@logfs.org>2013-06-12 16:27:54 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-06-20 14:10:48 -0700
commit08234e3adc7a299c9213bcfa0b5e97c359129670 (patch)
tree0caae34a966145ca746550421ae50909c1a23c24 /include/target
parentvhost/scsi: Convert to se_cmd->cmd_kref TARGET_SCF_ACK_KREF usage (diff)
downloadlinux-dev-08234e3adc7a299c9213bcfa0b5e97c359129670.tar.xz
linux-dev-08234e3adc7a299c9213bcfa0b5e97c359129670.zip
qla_target: remove qlt_check_fcport_exist
Comment from original 2012 patch: In all our testing this function has never returned true. However, the dropping of hardware_lock necessary to call this function seems to cause a use-after-free we manage to hit rather frequently. Given this cost-benefit ratio, I'm willing to remove some 100 lines of code. And since the same problem exists around shutdown_sess and put_sess, this patch changes them from taking the hardware_lock to requiring the hardware_lock to be taken. In most cases the caller already had the lock and had to drop it for the called method to reacquire it. At best that hurts performance and in rare instances it causes races with fatal consequences. We dropped the original 2012 patch when upgrading our kernel and it took us nearly half a year to discover we still need it. (nab: Fix qla_tgt_sess reference in tcm_qla2xxx_put_sess) Signed-off-by: Joern Engel <joern@logfs.org> Cc: Giridhar Malavali <giridhar.malavali@qlogic.com> Cc: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions