On Mon, 28 Mar 2005, Patrick McHardy wrote:
Catalin(ux aka Dino) BOIE wrote:
Hello!
Trying to load a custom module (same for teql but I didn't tried it)
whan the qdisc module is not loaded, makes tc hang.
This is because qdisc_create aquires rtnl_sem and then tries to load a
module that tries to register_netdev (that tries to aquire the same
rtnl_sem).
Applying this patch makes the problem go away.
You open a race by dropping the lock and not replaying the request
after acquiring it again. This is Dave's original patch, please
simply fix this one up so it applies again.
Regards
Patrick
Patrick,
What to fix in Dave's patch? Seems ok to me.
Thanks!
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
|