From owner-svn-src-head@FreeBSD.ORG Sat Jun 8 18:16:42 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 70E7D7D8; Sat, 8 Jun 2013 18:16:42 +0000 (UTC) (envelope-from pluknet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 48F021E95; Sat, 8 Jun 2013 18:16:42 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r58IGgh7056975; Sat, 8 Jun 2013 18:16:42 GMT (envelope-from pluknet@svn.freebsd.org) Received: (from pluknet@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r58IGg5O056974; Sat, 8 Jun 2013 18:16:42 GMT (envelope-from pluknet@svn.freebsd.org) Message-Id: <201306081816.r58IGg5O056974@svn.freebsd.org> From: Sergey Kandaurov Date: Sat, 8 Jun 2013 18:16:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251546 - head/share/man/man9 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jun 2013 18:16:42 -0000 Author: pluknet Date: Sat Jun 8 18:16:41 2013 New Revision: 251546 URL: http://svnweb.freebsd.org/changeset/base/251546 Log: Update locking scheme, mostly transition from sched_lock. Modified: head/share/man/man9/signal.9 Modified: head/share/man/man9/signal.9 ============================================================================== --- head/share/man/man9/signal.9 Sat Jun 8 18:13:42 2013 (r251545) +++ head/share/man/man9/signal.9 Sat Jun 8 18:16:41 2013 (r251546) @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 20, 2004 +.Dd June 8, 2013 .Dt SIGNAL 9 .Os .Sh NAME @@ -252,7 +252,7 @@ The function resets the signal set and signal stack of a process in preparation for an .Xr execve 2 . -The lock for +The process lock for .Fa p must be held before .Fn execsigs @@ -272,11 +272,9 @@ Stop signals are handled and cleared rig .Fn issignal unless the process is a member of an orphaned process group and the stop signal originated from a TTY. -The -.Va sched_lock -lock may be acquired and released, and if -.Va Giant -is held, it may be released and reacquired. +The process spin lock for +.Fa td->td_proc +may be acquired and released. The .Vt sigacts structure @@ -289,9 +287,6 @@ The process lock for must be acquired before calling .Fn issignal and may be released and reacquired during the call. -The lock for the parent of -.Fa td->td_proc -may also be acquired and released. Default signal actions are not taken for system processes and init. .Pp The @@ -342,7 +337,7 @@ after the kernel has been notified that which causes the flag .Dv PS_NEEDSIGCHK to be set). -The lock for process that owns +The process lock for process that owns .Va curthread must be held before .Fn postsig @@ -360,7 +355,7 @@ function causes the process that owns to exit with a return value of signal number .Fa sig . If required, the process will dump core. -The lock for the process that owns +The process lock for the process that owns .Fa td must be held before .Fn sigexit @@ -377,8 +372,8 @@ to be ignored by .Fa p . The process lock for .Fa p -is acquired and released by -.Fn siginit . +is acquired and released, as is the lock for sigacts structure +.Fa p->p_sigacts . The only process that .Fn siginit is ever called for @@ -390,13 +385,11 @@ The function flags that there are unmasked signals pending that .Fn ast should handle. -The lock for process +The process lock for process .Fa td->td_proc must be held before .Fn signotify -is called, and -.Va sched_lock -is acquired and released. +is called, and the thread lock is acquired and released. .Pp The .Fn trapsignal @@ -410,10 +403,9 @@ will deliver it directly; otherwise, will call .Xr psignal 9 to cause the signal to be delivered. -The -.Va sched_lock -lock is acquired and released, as is the lock for -.Fa td->td_proc . +The process lock for +.Fa td->td_proc +is acquired and released. The lock for the .Va p_sigacts field of