From owner-svn-src-head@FreeBSD.ORG Wed May 20 18:45:49 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0A531065676; Wed, 20 May 2009 18:45:49 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9EB248FC20; Wed, 20 May 2009 18:45:49 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4KIjneK040352; Wed, 20 May 2009 18:45:49 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4KIjnSh040351; Wed, 20 May 2009 18:45:49 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <200905201845.n4KIjnSh040351@svn.freebsd.org> From: John Baldwin Date: Wed, 20 May 2009 18:45:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192462 - head/sys/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 20 May 2009 18:45:50 -0000 Author: jhb Date: Wed May 20 18:45:49 2009 New Revision: 192462 URL: http://svn.freebsd.org/changeset/base/192462 Log: Add a new locking note for p_aioinfo as it is not a normal PROC_LOCK field. Modified: head/sys/sys/proc.h Modified: head/sys/sys/proc.h ============================================================================== --- head/sys/sys/proc.h Wed May 20 18:42:04 2009 (r192461) +++ head/sys/sys/proc.h Wed May 20 18:45:49 2009 (r192462) @@ -148,6 +148,8 @@ struct pargs { * r - p_peers lock * t - thread lock * x - created at fork, only changes during single threading in exec + * y - created at first aio, doesn't change until exit or exec at which + * point we are single-threaded and only curthread changes it * z - zombie threads lock * * If the locking key specifies two identifiers (for example, p_pptr) then @@ -503,7 +505,7 @@ struct proc { char p_step; /* (c) Process is stopped. */ u_char p_pfsflags; /* (c) Procfs flags. */ struct nlminfo *p_nlminfo; /* (?) Only used by/for lockd. */ - struct kaioinfo *p_aioinfo; /* (c) ASYNC I/O info. */ + struct kaioinfo *p_aioinfo; /* (y) ASYNC I/O info. */ struct thread *p_singlethread;/* (c + j) If single threading this is it */ int p_suspcount; /* (j) Num threads in suspended mode. */ struct thread *p_xthread; /* (c) Trap thread */