diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2024-10-17 11:31:39 -0700 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-10-24 16:03:40 +0200 |
commit | 3deec3b4afb4c767007eae1eeedbcf3da599395b (patch) | |
tree | 1096e23e95996513d2a076745f3aad2cbf67d0ce /include/net | |
parent | de51ad08b1177bbbb8b60cb7dd4c3c5dd50d262f (diff) |
phonet: Convert phonet_routes.lock to spinlock_t.
route_doit() calls phonet_route_add() or phonet_route_del()
for RTM_NEWROUTE or RTM_DELROUTE, respectively.
Both functions only touch phonet_pernet(dev_net(dev))->routes,
which is currently protected by RTNL and its dedicated mutex,
phonet_routes.lock.
We will convert route_doit() to RCU and cannot use mutex inside RCU.
Let's convert the mutex to spinlock_t.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/phonet/pn_dev.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/phonet/pn_dev.h b/include/net/phonet/pn_dev.h index 021e524fd20a..37a3e83531c6 100644 --- a/include/net/phonet/pn_dev.h +++ b/include/net/phonet/pn_dev.h @@ -11,7 +11,6 @@ #define PN_DEV_H #include <linux/list.h> -#include <linux/mutex.h> #include <linux/spinlock.h> struct net; |