Skip to content
Commit 63aaf647 authored by Roland Dreier's avatar Roland Dreier Committed by Roland Dreier
Browse files

Make sure that userspace does not retrieve stale asynchronous or


completion events after destroying a CQ, QP or SRQ.  We do this by
sweeping the event lists before returning from a destroy calls, and
then return the number of events already reported before the destroy
call.  This allows userspace wait until it has processed all events
for an object returned from the kernel before it frees its context for
the object.

The ABI of the destroy CQ, destroy QP and destroy SRQ commands has to
change to return the event count, so bump the ABI version from 1 to 2.
The userspace libibverbs library has already been updated to handle
both the old and new ABI versions.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 2e9f7cb7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment