]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
vlan: remove one synchronize_net() call
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 9 May 2011 04:40:44 +0000 (04:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2011 18:41:41 +0000 (11:41 -0700)
commit48752e1b1802231ef2a076f34d861918b7d571c3
treed4be28aa585dd24e3ebe456748a4d92a841882d3
parentda37e368763f708d2ae5a81e61ec59372b831cf5
vlan: remove one synchronize_net() call

At VLAN dismantle phase, unregister_vlan_dev() makes one
synchronize_net() call after vlan_group_set_device(grp, vlan_id, NULL).

This call can be safely removed because we are calling
unregister_netdevice_queue() to queue device for deletion, and this
process needs at least one rcu grace period to complete.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ben Greear <greearb@candelatech.com>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Jesse Gross <jesse@nicira.com>
Cc: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h
net/8021q/vlan.c