diff options
author | 2020-03-02 13:55:15 +0000 | |
---|---|---|
committer | 2020-03-02 13:55:15 +0000 | |
commit | 9467af2c6de3b99bb8540c86153464a4f9026d41 (patch) | |
tree | 74a78e8e745626c40ec6e5c783a3415ba24aa75e /lib | |
parent | Accidently some tests were never running. Make regress target names (diff) | |
download | wireguard-openbsd-9467af2c6de3b99bb8540c86153464a4f9026d41.tar.xz wireguard-openbsd-9467af2c6de3b99bb8540c86153464a4f9026d41.zip |
msleep() and rwsleep() allow to release the lock when going to
sleep. If sleep_setup_signal() detects that the process has been
stopped, it calls mi_switch() instead of sleeping. Then the lock
was not released and other processes got stuck. Move the mtx_leave()
and rw_exit() before sleep_setup_signal() to prevent that a stopped
process holds a short term kernel lock.
input kettenis@; OK visa@ tedu@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions