Update route entries reference counters atomically.
authormpi <mpi@openbsd.org>
Fri, 23 Oct 2015 14:48:22 +0000 (14:48 +0000)
committermpi <mpi@openbsd.org>
Fri, 23 Oct 2015 14:48:22 +0000 (14:48 +0000)
commit7f7db71817a70095eb15f76e49fec8698a2d7f82
tree7bcc0f271186b72be779d71bfd4e0f0c46939a7e
parent38dd78fbcf8bc47f807951661d5166d0a7e8503e
Update route entries reference counters atomically.

This allows us to only grab the KERNEL_LOCK when the last reference
of an entry has been dropped.

For symmetry also grab the KERNEL_LOCK inside rtalloc(9).

ok dlg@, bluhm@
sys/net/route.c