]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: qla2xxx: Fix NPIV host cleanup in target mode
authorSawan Chandak <sawan.chandak@cavium.com>
Mon, 4 Dec 2017 22:45:04 +0000 (14:45 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Dec 2017 02:07:04 +0000 (21:07 -0500)
commit3be63b1e1838e35ce93e83f19573e949f4b389b4
tree42b554719564d4389990bad948e46b55111985fe
parent414d9ff3f8039f85d23f619dcbbd1ba2628a1a67
scsi: qla2xxx: Fix NPIV host cleanup in target mode

Add check to make sure we are cleaning up global target host list only
for NPIV hosts

Fixes: bdbe24de281e2 ("scsi: qla2xxx: Cleanup NPIV host in target mode during config teardown")
Cc: <stable@vger.kernel.org> # 4.10+
Signed-off-by: Sawan Chandak <sawan.chandak@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c