OSDN Git Service

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)
commita96f7a6a60b310fdb7913d5ae70961eeeca9527d
tree5c00956ca95472c1a3196f5b74f4396e5b44abb2
parent3f55211ecf6a8fb271565adcb704cd57a8e4547c
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