IB/hfi1: Insure freeze_work work_struct is canceled on shutdown
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 24 May 2019 15:44:45 +0000 (11:44 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 29 May 2019 15:56:05 +0000 (12:56 -0300)
commit6d517353c70bb0818b691ca003afdcb5ee5ea44e
tree9e0781b9f1e17bdd24e29bbace724adfd3aefa68
parent2abae62a26a265129b364d8c1ef3be55e2c01309
IB/hfi1: Insure freeze_work work_struct is canceled on shutdown

By code inspection, the freeze_work is never canceled.

Fix by adding a cancel_work_sync in the shutdown path to insure it is no
longer running.

Fixes: 7724105686e7 ("IB/hfi1: add driver files")
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/chip.c