]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Add lock protection around host lookup
authorQuinn Tran <quinn.tran@cavium.com>
Thu, 28 Dec 2017 20:33:27 +0000 (12:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Jan 2018 04:41:06 +0000 (23:41 -0500)
commit9eb1e955f9ab6c9a1c5ff08ed4527437b6a60514
tree3c357cb0e7c4a2945a468f07ac21796f0d3413b2
parent295cf65cffa3c0b4d48974ef743a1ad4e0a74218
scsi: qla2xxx: Add lock protection around host lookup

Host lookup via btree is currently protected by the hardware_lock.
Add hardware_lock when modifying btree to store host pointer.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_mid.c
drivers/scsi/qla2xxx/qla_target.c