librdmacm: fix event reporting
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Apr 2009 19:37:41 +0000 (19:37 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Apr 2009 19:37:41 +0000 (19:37 +0000)
commit55413bd9ce69a221a0d073f6b16d958d3c7fee89
tree68cd871886b1e060b5c46b9df1e6cf73cdeab466
parentb44e2a7500978f611058452a5dfeaf1183206c8f
librdmacm: fix event reporting

Use the latest comp_channel changes to fix event reporting and avoid
hangs when destroying resources.  We need to track when closing
devices to make sure that events are canceled, and avoid issuing
new wait calls.

Minor correction to the cmatose test app to avoid busy polling of the CQ,
which can prevent other threads from running.  This leads to connection
failures when running more clients than there are CPUs in the system.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2130 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/librdmacm/examples/cmatose/cmatose.c
ulp/librdmacm/src/cma.cpp