[openib-general] RE: Re: [PATCH] ipoib_flush_paths

Roland Dreier rdreier at cisco.com
Thu Apr 6 05:58:41 PDT 2006


    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.



More information about the general mailing list