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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2020 06:13:26 +0000 (08:13 +0200)
commitdaea9b9277e40e6f1ef34bd0be607a3aab2df0b4
treeb1bb581aee39afe2adfe83c189d7aac933a7a7b3
parentb30b86b2c215cb9c8ab4002bcad1fc4fe33295e9
IB/hfi1: Do not destroy link_wq when the device is shut down

commit 2315ec12ee8e8257bb335654c62e0cae71dc278d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/hfi1/init.c