[openib-general] [PATCH] for 2-6-19 rdma/addr: use client registration to fix module unload race

Michael S. Tsirkin mst at mellanox.co.il
Tue Oct 31 02:43:52 PST 2006


Quoting r. Or Gerlitz <ogerlitz at voltaire.com>:
> >> Require registration with ib_addr module to prevent caller from unloading
> >> while a callback is in progress.
> 
> > ib_cm has this bug as well. Shouldn't we patch it for 2.6.19 too?
> 
> I know there was a similar discussion which i was not tracking... re 
> registrations with the ib_sa module, however, please tell me if and why 
> i am wrong:

Look it up in the archives. Summary:

The race happens on module unload - you might be inside the cm callback when
the module is unloaded. Nothing the module itself does can help here - you must
synchronize with the cm before unloading.

-- 
MST




More information about the general mailing list