Fabian> Can't you pass in a reference to the client module for
    Fabian> registration, and then take a reference from the context
    Fabian> of each request that is released after the callback
    Fabian> unwinds?  I thought Linux had module reference functions...

I'm pretty sure that any scheme that tries to use module reference
counting will either be horribly complex, still have subtle races, or
(mostly likely) both.

The sanest solution at least for the SA query module would be to make
every consumer get some sort of client cookie, and then have the
function that destroys the cookie wait for all callbacks to finish.

 - R.
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to