svn commit: r192462 - head/sys/sys
John Baldwin
jhb at FreeBSD.org
Wed May 20 18:45:50 UTC 2009
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 */
More information about the svn-src-head
mailing list