Route timers were not MP safe. Protect the global lists with a
authorbluhm <bluhm@openbsd.org>
Thu, 28 Apr 2022 17:47:41 +0000 (17:47 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 28 Apr 2022 17:47:41 +0000 (17:47 +0000)
commit01088b71276449c8ca05f5ae7519eb829e4ce503
treed7a1a95c14fb71a2142ccaecfd6fa0390dad8cf0
parent5fff88f8442c57a754a9562593b68f5e8cdc3a43
Route timers were not MP safe.  Protect the global lists with a
mutex and move the rttimer entries into a temporary list.  Then the
callback and pool put can be called later without holding the mutex.
tested by Hrvoje Popovski; OK claudio@
sys/net/route.c
sys/net/route.h