svn commit: r331853 - head/sys/sys
Mark Johnston
markj at FreeBSD.org
Sat Mar 31 23:24:29 UTC 2018
Author: markj
Date: Sat Mar 31 23:24:28 2018
New Revision: 331853
URL: https://svnweb.freebsd.org/changeset/base/331853
Log:
Don't verify td_locks accounting after a panic.
Reported by: pho
X-MFC with: r331738
Modified:
head/sys/sys/proc.h
Modified: head/sys/sys/proc.h
==============================================================================
--- head/sys/sys/proc.h Sat Mar 31 22:02:59 2018 (r331852)
+++ head/sys/sys/proc.h Sat Mar 31 23:24:28 2018 (r331853)
@@ -382,7 +382,8 @@ do { \
#define TD_LOCKS_INC(td) ((td)->td_locks++)
#define TD_LOCKS_DEC(td) do { \
- KASSERT((td)->td_locks > 0, ("thread %p owns no locks", (td))); \
+ KASSERT(SCHEDULER_STOPPED_TD(td) || (td)->td_locks > 0, \
+ ("thread %p owns no locks", (td))); \
(td)->td_locks--; \
} while (0)
#else
More information about the svn-src-all
mailing list