1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

Don't verify td_locks accounting after a panic.

Reported by:	pho
X-MFC with:	r331738
This commit is contained in:
Mark Johnston 2018-03-31 23:24:28 +00:00
parent 80105e4e72
commit 06ee341cdf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331853

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