Date: Fri, 24 Feb 2006 20:11:31 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 92355 for review Message-ID: <200602242011.k1OKBVdM020143@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=92355 Change 92355 by jhb@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)); \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602242011.k1OKBVdM020143>