IB/hfi1: Do not destroy link_wq when the device is shut down
authorKaike Wan <kaike.wan@intel.com>
Tue, 23 Jun 2020 20:40:53 +0000 (16:40 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 2 Jul 2020 16:54:50 +0000 (13:54 -0300)
commit2315ec12ee8e8257bb335654c62e0cae71dc278d
tree25762f3ca6a9b27cc0799606dd10992bc682b0ba
parent28b70cd9236563e1a88a6094673fef3c08db0d51
IB/hfi1: Do not destroy link_wq when the device is shut down

The workqueue link_wq should only be destroyed when the hfi1 driver is
unloaded, not when the device is shut down.

Fixes: 71d47008ca1b ("IB/hfi1: Create workqueue for link events")
Link: https://lore.kernel.org/r/20200623204053.107638.70315.stgit@awfm-01.aw.intel.com
Cc: <stable@vger.kernel.org>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hfi1/init.c