RDMA/cxgb3: Wait at least one schedule cycle during device removal
authorSteve Wise <swise@opengridcomputing.com>
Wed, 3 Mar 2010 15:06:34 +0000 (15:06 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 11 Mar 2010 22:00:35 +0000 (14:00 -0800)
commit69960a275efc9d82797bbbe2460a2d6c9cace314
tree6cc110dfe51a5267563789655f141d99dcc6d8c0
parent25cf84cf377c0aae5dbcf937ea89bc7893db5176
RDMA/cxgb3: Wait at least one schedule cycle during device removal

During a hot-plug LLD removal event or an EEH error event, iw_cxgb3
must ensure that any/all threads that might be in a cxgb3 exported
function must return from the function before iw_cxgb3 returns from
its event processing.  Do this by calling synchronize_net().

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch.c