From: Sean Hefty Date: Mon, 19 Mar 2007 22:31:36 +0000 (-0800) Subject: IPoIB: Fix race in detaching from mcast group before attaching X-Git-Tag: v2.6.21-rc5~46^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e07832b66285124038a96b25a2056e91a55d8b1e;p=pandora-kernel.git IPoIB: Fix race in detaching from mcast group before attaching There's a race between ipoib_mcast_leave() and ipoib_mcast_join_finish() where we can try to detach from a multicast group before we've attached to it. Fix this by reordering the code in ipoib_mcast_leave to free the multicast group first, which waits for the multicast callback thread (which calls ipoib_mcast_join_finish()) to complete before detaching from the group. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier --- Reading git-diff-tree failed