libibverbs: add reference counts to track CQ events
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sat, 1 Aug 2009 01:01:57 +0000 (01:01 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sat, 1 Aug 2009 01:01:57 +0000 (01:01 +0000)
commit9526b4f5eb680fc034d71bfedaeccca181413cc7
treed606c9cc9c69523b37dc677e58f479fdbc661ada
parent6fc13fc1fe91a3eeb0291fcd1fbf673949c0e924
libibverbs: add reference counts to track CQ events

We need to track CQ events to block destroying CQ objects until all outstanding events have been acknowledged.  Otherwise, the caller could reference freed memory after calling ibv_get_cq_event.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2323 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/libibverbs/include/infiniband/verbs.h
ulp/libibverbs/src/verbs.cpp