Date: Fri, 30 Dec 2011 19:24:53 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r229015 - stable/8/sys/sys Message-ID: <201112301924.pBUJOre7026809@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri Dec 30 19:24:53 2011 New Revision: 229015 URL: http://svn.freebsd.org/changeset/base/229015 Log: MFC r227392: Assert that _PRELE() is done for the held process. Modified: stable/8/sys/sys/proc.h Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/sys/proc.h ============================================================================== --- stable/8/sys/sys/proc.h Fri Dec 30 19:18:13 2011 (r229014) +++ stable/8/sys/sys/proc.h Fri Dec 30 19:24:53 2011 (r229015) @@ -747,6 +747,7 @@ MALLOC_DECLARE(M_SUBPROC); } while (0) #define _PRELE(p) do { \ PROC_LOCK_ASSERT((p), MA_OWNED); \ + PROC_ASSERT_HELD(p); \ (--(p)->p_lock); \ if (((p)->p_flag & P_WEXIT) && (p)->p_lock == 0) \ wakeup(&(p)->p_lock); \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112301924.pBUJOre7026809>