Make rw_exit() always succeed after a panic.
authormpi <mpi@openbsd.org>
Mon, 18 Dec 2017 10:05:43 +0000 (10:05 +0000)
committermpi <mpi@openbsd.org>
Mon, 18 Dec 2017 10:05:43 +0000 (10:05 +0000)
commite8a5fa7b28f13aaabdc4ee58078d26f364a199b9
tree91563c0f070cd484338c0dab91f2e27fe3be978e
parent837985384219efd5a5aa954c64c1d63ee952da6a
Make rw_exit() always succeed after a panic.

Prevents a deadlock in if_downall() when rw_enter() succeed without
really grabbing the lock.

Reported by and ok phessler@
sys/kern/kern_rwlock.c