CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/03/02 06:55:15
Modified files:
sys/kern : kern_synch.c
Log message:
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@