Thread (11 messages) 11 messages, 3 authors, 2009-10-30

Re: [PATCH 4/6] vlan: Optimize multiple unregistration

From: Eric Dumazet <hidden>
Date: 2009-10-30 06:30:43

Patrick McHardy a écrit :
Eric Dumazet wrote:
quoted
Patrick McHardy a écrit :
quoted
Indeed, but unregister_vlan_dev() destroys the group once the
count has reached zero, so we must not access it after that.
Well, I hoped call_rcu() callback doesnt fire and kfree(grp) until we exited
from unregister_vlan_dev_alls(), with RTNL locked...
The RTNL is a mutex, so it shouldn't prevent call_rcu from firing.
Oops this is totally right of course, so your patch is actually a bug fix :)

Acked-by: Eric Dumazet <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help