From: Jack Morgenstein Date: Thu, 3 Aug 2006 17:56:42 +0000 (-0700) Subject: IB/uverbs: Avoid a crash on device hot remove X-Git-Tag: v2.6.18-rc4~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd60ae404f104f12369e654af9cf03b1f1047661;p=pandora-kernel.git IB/uverbs: Avoid a crash on device hot remove Wait until all users have closed their device context before allowing device unregistration to complete. This prevents a crash caused by referring to stale data structures. A better solution would be to have a way to revoke contexts rather than waiting for userspace to close the context, but that's a much bigger change that will have to wait. For now let's at least avoid the crash. Signed-off-by: Jack Morgenstein Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed