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

Fab Tillier ftillier at infiniconsys.com
Mon Nov 29 10:13:39 PST 2004


> From: Roland Dreier [mailto:roland at topspin.com]
> Sent: Monday, November 29, 2004 10:04 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.
> 
> Sorry, I think I read this backwards before.  But if each neighbour
> has a reference on the IPoIB module then it will be nearly impossible
> to unload the IPoIB module (which solves the problem but again in not
> a very nice way).
> 

Don't the neighbour structures get cleaned up when an interface goes down?
Can't the interface go down while the module has outstanding references?

I probably just don't know enough about how module unload works.

- Fab




More information about the general mailing list