]> bbs.cooldavid.org Git - net-next-2.6.git/commit
bridge: add rcu_read_lock on transmit
authorstephen hemminger <shemminger@vyatta.com>
Tue, 27 Jul 2010 08:26:30 +0000 (08:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jul 2010 17:50:55 +0000 (10:50 -0700)
commiteeaf61d8891f9c9ed12c1a667e72bf83f0857954
treedaeda447800df1349559268d8f6e79c90dcd22dd
parentff847ac2d3e90edd94674c28bade25ae1e6a2e49
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>
net/bridge/br_device.c
net/bridge/br_fdb.c
net/bridge/br_input.c
net/bridge/br_stp_bpdu.c