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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2018 10:16:37 +0000 (12:16 +0200)
commit01cda405c88b5ce1ff8c7d4006ec23ade2b0a507
tree9e9b955eb8bc688a2da8b2f2ce6e2116f8eb0e4c
parent43d7c954b22e87f16a8304518d776f454f584578
scsi: qla2xxx: Fix NPIV deletion by calling wait_for_sess_deletion

commit efa93f48fa9d423fda166bc3b6c0cbb09682492e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_attr.c
drivers/scsi/qla2xxx/qla_gbl.h
drivers/scsi/qla2xxx/qla_mid.c
drivers/scsi/qla2xxx/qla_os.c