IB/mlx5: Flush cache workqueue before destroying it
authorMoshe Lazer <moshel@mellanox.com>
Wed, 11 Sep 2013 13:35:23 +0000 (16:35 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 10 Oct 2013 16:23:55 +0000 (09:23 -0700)
commit3c4619114cb6760d2c97fd562ea96d2c8786b56a
tree35b284517c269572ab2c7b7ab2317e6f777d0da3
parentb125a54bfd7734a44253d2f2909a3c609768c1ec
IB/mlx5: Flush cache workqueue before destroying it

Destroying the workqueue without flushing it first can lead to a case
in which the kernel tries to push a delayed work to the workqueue
which does not exist anymore.

Signed-off-by: Moshe Lazer <moshel@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/mr.c