Date: Fri, 21 Mar 2008 08:23:25 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys proc.h src/sys/kern kern_sig.c kern_thr.c kern_thread.c subr_sleepqueue.c subr_trap.c Message-ID: <200803210823.m2L8NP2Q058674@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jeff 2008-03-21 08:23:25 UTC
FreeBSD src repository
Modified files:
sys/sys proc.h
sys/kern kern_sig.c kern_thr.c kern_thread.c
subr_sleepqueue.c subr_trap.c
Log:
- 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)
Revision Changes Path
1.360 +1 -0 src/sys/kern/kern_sig.c
1.66 +2 -0 src/sys/kern/kern_thr.c
1.273 +3 -1 src/sys/kern/kern_thread.c
1.51 +1 -1 src/sys/kern/subr_sleepqueue.c
1.303 +11 -17 src/sys/kern/subr_trap.c
1.509 +1 -1 src/sys/sys/proc.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803210823.m2L8NP2Q058674>
