commit | f2de3b06126ddb07d0e4617225d74dce0855add3 | [log] [tgz] |
---|---|---|
author | Eli Cohen <eli@mellanox.co.il> | Wed Apr 05 14:59:40 2006 +0300 |
committer | Roland Dreier <rolandd@cisco.com> | Mon Apr 10 09:43:58 2006 -0700 |
tree | 21a62b2115804688d700c01ed2ede87413b5d9d1 | |
parent | bf6a9e31cfa768ce0a8e18474b3ca808641d9243 [diff] |
IPoIB: Wait for join to finish before freeing mcast struct ipoib_mcast_restart_task() might free an mcast object while a join request is still outstanding, leading to an oops when the query completes. Fix this by waiting for query to complete, similar to what ipoib_stop_thread() is doing. The wait for mcast completion code is consolidated in wait_for_mcast_join(). Signed-off-by: Eli Cohen <eli@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>