Thread (7 messages) 7 messages, 3 authors, 2005-03-28

Re: [PATCH] rtnl_unlock/lock in sch_api.c

From: Patrick McHardy <hidden>
Date: 2005-03-28 14:50:32

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help