Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2009 18:45:49 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192462 - head/sys/sys
Message-ID:  <200905201845.n4KIjnSh040351@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905201845.n4KIjnSh040351>