scsi: lpfc: Fix lingering lpfc_wq resource after driver unload
authorJames Smart <jsmart2021@gmail.com>
Mon, 9 Apr 2018 21:24:26 +0000 (14:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 18 Apr 2018 23:34:03 +0000 (19:34 -0400)
commit0cdb84ec26e455326a8ee1b7c69ce1c281ba38cb
treeb6f8b80f830a3ce66053fc8e8809744ad2416522
parent59c68eaad7303f9f1d42a83b223aa6a2c254aaa0
scsi: lpfc: Fix lingering lpfc_wq resource after driver unload

After driver unloads, lpfc_wq remains active. The destroy_workqueue
calls were not being made in driver unload.  Additionally, SLI3 is
allocating lpfc_wq resources, but never uses it.

Make the destroy_workqueue calls on driver unload.  Modify the SLI3 code
path no longer allocate lpfc_wq resources.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c