You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc8c5fa
Browse filesBrowse the repository at this point in the historyBrowse files
The rhashtable walk functions acquire the table's internal lock with
spin_lock, and the rhashtable rehash worker holds that lock with
softirqs enabled. peertab->lock is acquired in softirq context
(homa_route_get, homa_route_free), so holding it while walking the
table can deadlock: lockdep reports "SOFTIRQ-safe -> SOFTIRQ-unsafe
lock order detected" from homa_peer_free_net at netns exit, and
homa_route_gc has the same problem.
Add peertab->walk_mutex to serialize the two walks (and protect
route_ht_iter), and acquire peertab->lock only around the removals.
homa_route_gc now holds the RCU read lock from choosing victims until
it has removed them, since another thread may remove a victim in
between.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments