IB/cm: Fix timewait crash after module unload
authorSean Hefty <sean.hefty@intel.com>
Wed, 4 Oct 2006 18:29:59 +0000 (11:29 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 10 Oct 2006 19:50:38 +0000 (12:50 -0700)
commit8575329d4f8596519d86830f622d2c30601f3ef3
tree6fbcb5200d4bb863018fae5a07bfff9e16b9a976
parenta8bf4e7717142b0688a726dd07501a6a7783792a
IB/cm: Fix timewait crash after module unload

If the ib_cm module is unloaded while id's are still in timewait, the
CM will destroy the work queue used to process timewait.  Once the
id's exit timewait, their timers will fire, leading to a crash trying
to access the destroyed work queue.

We need to track id's that are in timewait, and cancel their deferred
work on module unload.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cm.c