Don't verify td_locks accounting after a panic.

Reported by:	pho
X-MFC with:	r331738
This commit is contained in:
markj 2018-03-31 23:24:28 +00:00
parent a7dfa8ed18
commit 82b6c3b99e

View File

@ -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