]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Add a new td flag TDF_NEEDSUSPCHK that is set whenever a thread needs
authorJeff Roberson <jeff@FreeBSD.org>
Fri, 21 Mar 2008 08:23:25 +0000 (08:23 +0000)
committerJeff Roberson <jeff@FreeBSD.org>
Fri, 21 Mar 2008 08:23:25 +0000 (08:23 +0000)
commitb7edba7704f000c77a761cb69282062a9db331a2
tree85009349e539f1265173b5d33889d0fca5031c61
parent04a57d2c838813acef28df70c18cfb63f452653a
 - Add a new td flag TDF_NEEDSUSPCHK that is set whenever a thread needs
   to enter thread_suspend_check().
 - Set TDF_ASTPENDING along with TDF_NEEDSUSPCHK so we can move the
   thread_suspend_check() to ast() rather than userret().
 - Check TDF_NEEDSUSPCHK in the sleepq_catch_signals() optimization so
   that we don't miss a suspend request.  If this is set use the
   expensive signal path.
 - Set NEEDSUSPCHK when creating a new thread in thr in case the
   creating thread is due to be suspended as well but has not yet.

Reviewed by: davidxu (Authored original patch)
sys/kern/kern_sig.c
sys/kern/kern_thr.c
sys/kern/kern_thread.c
sys/kern/subr_sleepqueue.c
sys/kern/subr_trap.c
sys/sys/proc.h