IPoIB: Wait for join to finish before freeing mcast struct
authorEli Cohen <eli@mellanox.co.il>
Wed, 5 Apr 2006 11:59:40 +0000 (14:59 +0300)
committerRoland Dreier <rolandd@cisco.com>
Mon, 10 Apr 2006 16:43:58 +0000 (09:43 -0700)
commitf2de3b06126ddb07d0e4617225d74dce0855add3
tree21a62b2115804688d700c01ed2ede87413b5d9d1
parentbf6a9e31cfa768ce0a8e18474b3ca808641d9243
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>
drivers/infiniband/ulp/ipoib/ipoib_multicast.c