PERFORCE change 92355 for review
John Baldwin
jhb at FreeBSD.org
Fri Feb 24 12:11:32 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=92355
Change 92355 by jhb at jhb_slimer on 2006/02/24 20:11:28
Allow a PHOLD() of curproc at any time.
Affected files ...
.. //depot/projects/smpng/sys/sys/proc.h#164 edit
Differences ...
==== //depot/projects/smpng/sys/sys/proc.h#164 (text+ko) ====
@@ -792,7 +792,8 @@
} while (0)
#define _PHOLD(p) do { \
PROC_LOCK_ASSERT((p), MA_OWNED); \
- KASSERT(!((p)->p_flag & P_WEXIT), ("PHOLD of exiting process"));\
+ KASSERT(!((p)->p_flag & P_WEXIT) || (p) == curproc, \
+ ("PHOLD of exiting process")); \
(p)->p_lock++; \
if (((p)->p_sflag & PS_INMEM) == 0) \
faultin((p)); \
More information about the p4-projects
mailing list