CVSROOT: /cvs Module name: src Changes by: [email protected] 2017/05/18 01:08:45
Modified files:
sys/kern : kern_synch.c
Log message:
Do not panic if we find ourself on the sleep queue while being SONPROC.
If the rwlock passed to rwsleep(9) is contented, the CPU will call wakeup()
between sleep_setup() and sleep_finish(). At this moment curproc is on the
sleep queue but marked as SONPROC. Avoid panicing in this case.
Problem reported by sthen@
ok kettenis@, visa@
