]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ipmr: convert mrt_lock to a spinlock
authorEric Dumazet <edumazet@google.com>
Thu, 23 Jun 2022 04:34:48 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:34:38 +0000 (11:34 +0100)
commit3f55211ecf6a8fb271565adcb704cd57a8e4547c
tree6779414584f1dd5651d0c3a4b596a163aae3595f
parentb96ef16d2f837870daaea51c38cd50458b95ad5c
ipmr: convert mrt_lock to a spinlock

mrt_lock is only held in write mode, from process context only.

We can switch to a mere spinlock, and avoid blocking BH.

Also, vif_dev_read() is always called under standard rcu_read_lock().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c