svn commit: r229014 - stable/9/sys/sys

Konstantin Belousov kib at FreeBSD.org
Fri Dec 30 19:18:14 UTC 2011


Author: kib
Date: Fri Dec 30 19:18:13 2011
New Revision: 229014
URL: http://svn.freebsd.org/changeset/base/229014

Log:
  MFC r227392:
  Assert that _PRELE() is done for the held process.

Modified:
  stable/9/sys/sys/proc.h
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/sys/proc.h
==============================================================================
--- stable/9/sys/sys/proc.h	Fri Dec 30 19:04:12 2011	(r229013)
+++ stable/9/sys/sys/proc.h	Fri Dec 30 19:18:13 2011	(r229014)
@@ -755,6 +755,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);					\


More information about the svn-src-stable-9 mailing list