svn commit: r313728 - stable/11/sys/kern
Andriy Gapon
avg at FreeBSD.org
Tue Feb 14 13:45:22 UTC 2017
Author: avg
Date: Tue Feb 14 13:45:20 2017
New Revision: 313728
URL: https://svnweb.freebsd.org/changeset/base/313728
Log:
MFC r312991: put very expensive sanity checks of advisory locks under DIAGNOSTIC
Sponsored by: Panzura
Modified:
stable/11/sys/kern/kern_lockf.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/kern_lockf.c
==============================================================================
--- stable/11/sys/kern/kern_lockf.c Tue Feb 14 13:35:59 2017 (r313727)
+++ stable/11/sys/kern/kern_lockf.c Tue Feb 14 13:45:20 2017 (r313728)
@@ -689,7 +689,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
@@ -917,7 +917,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