IPoIB: Avoid flushing the driver workqueue on dev_down
authorErez Shitrit <erezsh@mellanox.com>
Wed, 16 Oct 2013 14:37:50 +0000 (17:37 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:42:49 +0000 (14:42 -0800)
commitaede25011fddf559dcf216d86975187e3f64b109
tree6dd40c15990dff4b266924394e16f20bbd02ba06
parentf47944cc2dba3c7e6f753b81e9f713f4d12bdd5a
IPoIB: Avoid flushing the driver workqueue on dev_down

The driver should not flush the whole workqueue when only one work (the
pkey poll one) needs to be cancelled.  Use cancel_delayed_work_sync()
instead.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c