Thread (9 messages) flat view 9 messages, 4 authors, 2011-05-12

Re: [PATCH net-next-2.6] garp: remove last synchronize_rcu() call

From: David Miller <davem@davemloft.net>
Date: 2011-05-12 21:49:30

From: Eric Dumazet <redacted>
Date: Thu, 12 May 2011 15:29:17 +0200
[PATCH net-next-2.6] garp: remove last synchronize_rcu() call

When removing last vlan from a device, garp_uninit_applicant() calls
synchronize_rcu() to make sure no user can still manipulate struct
garp_applicant before we free it.

Use call_rcu() instead, as a step to further net_device dismantle
optimizations.

Add the temporary garp_cleanup_module() function to make sure no pending
call_rcu() are left at module unload time [ this will be removed when
kfree_rcu() is available ]

Signed-off-by: Eric Dumazet <redacted>
Looks good, applied, thanks Eric.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help