From: Michael S. Tsirkin Date: Mon, 20 Mar 2006 18:08:25 +0000 (-0800) Subject: IB/mad: Fix oopsable race on device removal X-Git-Tag: v2.6.17-rc1~1180^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc05980dd736bfbe5b2524b463e5f098e67a64e9;p=pandora-kernel.git IB/mad: Fix oopsable race on device removal Fix an oopsable race debugged by Eli Cohen : After removing the port from port_list, ib_mad_port_close flushes port_priv->wq before destroying the special QPs. This means that a completion event could arrive, and queue a new work in this work queue after flush. This patch also removes an unnecessary flush_workqueue(): destroy_workqueue() already includes a flush. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed