diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2025-10-22 08:39:49 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-10-25 03:57:20 +0300 |
| commit | 3064d0fe02af23a3956d2b690461abb44da88cf4 (patch) | |
| tree | 80154b9872342952bfe0f5c46c7b2972566355f0 /include | |
| parent | 55a6046b48a8c7d3ea164d9b68902b4ea6930cf3 (diff) | |
| download | linux-3064d0fe02af23a3956d2b690461abb44da88cf4.tar.xz | |
neighbour: Convert rwlock of struct neigh_table to spinlock.
Only neigh_for_each() and neigh_seq_start/stop() are on the
reader side of neigh_table.lock.
Let's convert rwlock to the plain spinlock.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20251022054004.2514876-6-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/neighbour.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 998ff9eccebb..2dfee6d4258a 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h @@ -238,7 +238,7 @@ struct neigh_table { atomic_t gc_entries; struct list_head gc_list; struct list_head managed_list; - rwlock_t lock; + spinlock_t lock; unsigned long last_rand; struct neigh_statistics __percpu *stats; struct neigh_hash_table __rcu *nht; |
