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)
commit9d1aa4e14e0ba10f946dafd46679f16f93013d58
tree3c357cb0e7c4a2945a468f07ac21796f0d3413b2
parenta4239945b8ad112fb914d0605c8f6c5fd3330f61
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