summaryrefslogtreecommitdiff
path: root/drivers/target/iscsi
diff options
context:
space:
mode:
authorJörn Engel <joern@logfs.org>2013-06-12 20:27:54 (GMT)
committerNicholas Bellinger <nab@linux-iscsi.org>2013-06-20 21:10:48 (GMT)
commit08234e3adc7a299c9213bcfa0b5e97c359129670 (patch)
tree0caae34a966145ca746550421ae50909c1a23c24 /drivers/target/iscsi
parent084ed45b3846ffb803a6cd6d631c1723e77689e0 (diff)
downloadlinux-fsl-qoriq-08234e3adc7a299c9213bcfa0b5e97c359129670.tar.xz
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 'drivers/target/iscsi')
0 files changed, 0 insertions, 0 deletions