]> git.baikalelectronics.ru Git - kernel.git/commit
ip6mr: convert mrt_lock to a spinlock
authorEric Dumazet <edumazet@google.com>
Thu, 23 Jun 2022 04:34:49 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:34:38 +0000 (11:34 +0100)
commit949795efdca3fe31f54f85ecc77d719f5b9b9a49
tree5c00956ca95472c1a3196f5b74f4396e5b44abb2
parent047c1098aa6b34ae55d9bd4cb79f8d9e7c093eeb
ip6mr: 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/ipv6/ip6mr.c