From: Michael S. Tsirkin Date: Wed, 8 Feb 2006 00:37:08 +0000 (-0800) Subject: IPoIB: Don't start send-only joins while multicast thread is stopped X-Git-Tag: v2.6.16-rc4~83^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=479a079663bd4c5f3d2714643b1b8c406aaba3e0;p=pandora-kernel.git IPoIB: Don't start send-only joins while multicast thread is stopped Fix the following race scenario: - Device is up. - Port event or set mcast list triggers ipoib_mcast_stop_thread, this cancels the query and waits on mcast "done" completion. - Completion is called and "done" is set. - Meanwhile, ipoib_mcast_send arrives and starts a new query, re-initializing "done". Fix this by adding a "multicast started" bit and checking it before starting a send-only join. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed