From: Sean Hefty Date: Fri, 12 May 2006 21:57:52 +0000 (-0700) Subject: IB: refcount race fixes X-Git-Tag: v2.6.17-rc5~162 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b52fa98edd1c3e663ea4a06519e3d20976084a8;p=pandora-kernel.git IB: refcount race fixes Fix race condition during destruction calls to avoid possibility of accessing object after it has been freed. Instead of waking up a wait queue directly, which is susceptible to a race where the object is freed between the reference count going to 0 and the wake_up(), use a completion to wait in the function doing the freeing. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier --- Reading git-diff-tree failed