From: Jack Morgenstein Date: Mon, 20 Mar 2006 18:08:24 +0000 (-0800) Subject: IPoIB: Move ipoib_ib_dev_flush() to ipoib workqueue X-Git-Tag: v2.6.17-rc1~1180^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3ea0829cbcdaee6e018a83a2949ef458213f3b;p=pandora-kernel.git IPoIB: Move ipoib_ib_dev_flush() to ipoib workqueue Move ipoib_ib_dev_flush() to ipoib's workqueue. This keeps it ordered with respect to other work scheduled by the ipoib driver. This fixes problems with races, for example: - ipoib_ib_dev_flush() has started running because of an IB event - user does ifconfig ib0 down - ipoib_mcast_stop_thread() gets called twice and waits for the same completion twice Signed-off-by: Jack Morgenstein Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed