svn commit: r313729 - stable/10/sys/kern

Andriy Gapon avg at FreeBSD.org
Tue Feb 14 13:45:40 UTC 2017


Author: avg
Date: Tue Feb 14 13:45:38 2017
New Revision: 313729
URL: https://svnweb.freebsd.org/changeset/base/313729

Log:
  MFC r312991: put very expensive sanity checks of advisory locks under DIAGNOSTIC
  
  Sponsored by:	Panzura

Modified:
  stable/10/sys/kern/kern_lockf.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_lockf.c
==============================================================================
--- stable/10/sys/kern/kern_lockf.c	Tue Feb 14 13:45:20 2017	(r313728)
+++ stable/10/sys/kern/kern_lockf.c	Tue Feb 14 13:45:38 2017	(r313729)
@@ -687,7 +687,7 @@ retry_setlock:
 		break;
 	}
 
-#ifdef INVARIANTS
+#ifdef DIAGNOSTIC
 	/*
 	 * Check for some can't happen stuff. In this case, the active
 	 * lock list becoming disordered or containing mutually
@@ -915,7 +915,7 @@ lf_add_edge(struct lockf_entry *x, struc
 	struct lockf_edge *e;
 	int error;
 
-#ifdef INVARIANTS
+#ifdef DIAGNOSTIC
 	LIST_FOREACH(e, &x->lf_outedges, le_outlink)
 		KASSERT(e->le_to != y, ("adding lock edge twice"));
 #endif


More information about the svn-src-all mailing list