diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-07-27 08:26:30 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-28 10:50:55 -0700 |
commit | eeaf61d8891f9c9ed12c1a667e72bf83f0857954 (patch) | |
tree | daeda447800df1349559268d8f6e79c90dcd22dd /net/bridge/br_fdb.c | |
parent | ff847ac2d3e90edd94674c28bade25ae1e6a2e49 (diff) | |
download | linux-stable-eeaf61d8891f9c9ed12c1a667e72bf83f0857954.tar.gz linux-stable-eeaf61d8891f9c9ed12c1a667e72bf83f0857954.tar.bz2 linux-stable-eeaf61d8891f9c9ed12c1a667e72bf83f0857954.zip |
bridge: add rcu_read_lock on transmit
Long ago, when bridge was converted to RCU, rcu lock was equivalent
to having preempt disabled. RCU has changed a lot since then and
bridge code was still assuming the since transmit was called with
bottom half disabled, it was RCU safe.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Tested-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_fdb.c')
-rw-r--r-- | net/bridge/br_fdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index b01dde35a69e..7204ad3aff65 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c @@ -214,7 +214,7 @@ void br_fdb_delete_by_port(struct net_bridge *br, spin_unlock_bh(&br->hash_lock); } -/* No locking or refcounting, assumes caller has no preempt (rcu_read_lock) */ +/* No locking or refcounting, assumes caller has rcu_read_lock */ struct net_bridge_fdb_entry *__br_fdb_get(struct net_bridge *br, const unsigned char *addr) { |