[openib-general] userspace event reporting take 2
Sean Hefty
sean.hefty at intel.com
Wed Aug 10 11:33:32 PDT 2005
Here's another stab at trying to improve userspace event reporting. I think
that the first discussion on this ended with a solution that wasn't any better
than what is there now.
The goal is to provide userspace clients receiving an event with a context that
is valid and does not require searches. Here's another attempt at a fix:
Destroy userspace_object:
Destroy the corresponding kernel object
Clean up all outstanding associated events
Return reported events that have been retrieved by userspace
Wait until reported events == completed events
Get event:
Retrieve an event
Increment reported events
Put event:
Increment completed events
Signal destroy if reported events == completed events and destroying
I think that this guarantees that the user context will be valid until put event
is called, and should avoid searches in either the userspace client or userspace
IB module.
- Sean
More information about the general
mailing list