]> 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)
commit13bff16a9b1f48941e71cb67811b0ef8cb46ae35
tree5c00956ca95472c1a3196f5b74f4396e5b44abb2
parented0ea0b5dbd4a32687d8cb6f265fe14b7e87a91b
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