epoch(9): make nesting assert in epoch_wait_preempt more specific
Reported by: markj
This commit is contained in:
parent
84a15fe70d
commit
10b8cd7f55
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335970
@ -421,7 +421,9 @@ epoch_wait_preempt(epoch_t epoch)
|
||||
if ((epoch->e_flags & EPOCH_LOCKED) == 0)
|
||||
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
|
||||
"epoch_wait() can be long running");
|
||||
KASSERT(td->td_epochnest == 0, ("epoch_wait() in the middle of an epoch section"));
|
||||
KASSERT(!in_epoch(epoch),
|
||||
("epoch_wait_preempt() called in the middle "
|
||||
"of an epoch section of the same epoch"));
|
||||
#endif
|
||||
thread_lock(td);
|
||||
DROP_GIANT();
|
||||
|
Loading…
Reference in New Issue
Block a user