scsi: qla2xxx: Fix NPIV deletion by calling wait_for_sess_deletion
authorQuinn Tran <quinn.tran@cavium.com>
Wed, 18 Jul 2018 21:29:52 +0000 (14:29 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Jul 2018 02:02:33 +0000 (22:02 -0400)
commitefa93f48fa9d423fda166bc3b6c0cbb09682492e
treebc77793248d63c06444efbdaeebdfdf80a47f9d6
parente3dde080ebbdbb4bda8eee35d770714fee8c59ac
scsi: qla2xxx: Fix NPIV deletion by calling wait_for_sess_deletion

Add wait for session deletion to finish before freeing an NPIV scsi host.

Fixes: 726b85487067 ("qla2xxx: Add framework for async fabric discovery")
Cc: <stable@vger.kernel.org>
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_attr.c
drivers/scsi/qla2xxx/qla_gbl.h
drivers/scsi/qla2xxx/qla_mid.c
drivers/scsi/qla2xxx/qla_os.c