]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm/rping: Make sure CQ event thread exits before destroying the CQ
authorSean Hefty <sean.hefty@intel.com>
Mon, 1 Nov 2010 18:12:13 +0000 (11:12 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 1 Nov 2010 18:12:13 +0000 (11:12 -0700)
commit93635fa33b41d356fa096242fec4ce788194b42f
treec1ef3731d2be8f33eefb2812355309d61ef045ff
parent5b14ca156e97e1706764d16cab960a7745148af9
librdmacm/rping: Make sure CQ event thread exits before destroying the CQ

It is possible for the CQ event thread to poll the CQ after it has been
destroyed which can result in a seg fault on T3 interfaces.  This patch
waits for the thread to exit before destroying the CQ.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
examples/rping.c