]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bridge: add rcu_read_lock on transmit
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 19 Aug 2010 05:56:36 +0000 (22:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:45:58 +0000 (16:45 -0700)
commitf49fd7f79a1e35fd2a322f1af4d7a9ce075d972b
treea40711d61d11e694bf686f92a2318c98c458216e
parent922ab18b2778c82bc52acd43ab0e41b31847afc3
bridge: add rcu_read_lock on transmit

[ Upstream commit eeaf61d8891f9c9ed12c1a667e72bf83f0857954 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/bridge/br_device.c
net/bridge/br_fdb.c
net/bridge/br_input.c
net/bridge/br_stp_bpdu.c