diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-05-19 19:37:40 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-23 01:01:20 (GMT) |
commit | 6df427fe8c481d3be437cbe8bd366bdac82b73c4 (patch) | |
tree | 5107145d367b646f815493bfcee75e2c0abfca3b /net/sctp/inqueue.c | |
parent | ac3d3f81516fcbf80416e84682fd4bdaf3080611 (diff) | |
download | linux-fsl-qoriq-6df427fe8c481d3be437cbe8bd366bdac82b73c4.tar.xz |
net: remove synchronize_net() from netdev_set_master()
In the old days, we used to access dev->master in __netif_receive_skb()
in a rcu_read_lock section.
So one synchronize_net() call was needed in netdev_set_master() to make
sure another cpu could not use old master while/after we release it.
We now use netdev_rx_handler infrastructure and added one
synchronize_net() call in bond_release()/bond_release_all()
Remove the obsolete synchronize_net() from netdev_set_master() and add
one in bridge del_nbp() after its netdev_rx_handler_unregister() call.
This makes enslave -d a bit faster.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Jiri Pirko <jpirko@redhat.com>
CC: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/inqueue.c')
0 files changed, 0 insertions, 0 deletions