[openib-general] possible oops when callingipoib_neigh_destructor while ipoib mod ule is down.

Fab Tillier ftillier at infiniconsys.com
Mon Nov 29 10:07:06 PST 2004


> From: Roland Dreier [mailto:roland at topspin.com]
> Sent: Monday, November 29, 2004 9:43 AM
> 
>     Fab> Maybe I'm clueless (quite likely), but why not just have each
>     Fab> neighbour structure take a reference on the module when it is
>     Fab> created?  The destructor would release that reference.  That
>     Fab> should solve races involved with cleaning up, as well as
>     Fab> ensuring that the module is still around for the destructor
>     Fab> to get invoked.
> 
> That's a possibility but then no IPoIB neighbour structures could ever
> be garbage collected, which doesn't seem like a good idea.

I'm confused - why not?  Why couldn't garbage collection invoke a similar
code path to the destructor?

- Fab




More information about the general mailing list