From owner-cvs-src@FreeBSD.ORG Fri Mar 21 08:23:26 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18ED1106566B; Fri, 21 Mar 2008 08:23:26 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0D6588FC22; Fri, 21 Mar 2008 08:23:26 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2L8NPvR058675; Fri, 21 Mar 2008 08:23:25 GMT (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2L8NP2Q058674; Fri, 21 Mar 2008 08:23:25 GMT (envelope-from jeff) Message-Id: <200803210823.m2L8NP2Q058674@repoman.freebsd.org> From: Jeff Roberson Date: Fri, 21 Mar 2008 08:23:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: 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 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 08:23:26 -0000 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