Assert that smp_rendezvous_cpus is called with interrupts enabled.
This commit is contained in:
parent
23e6779681
commit
a2af893072
@ -563,6 +563,12 @@ smp_rendezvous_cpus(cpuset_t map,
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure we come here with interrupts enabled. Otherwise we
|
||||
* livelock if smp_ipi_mtx is owned by a thread which sent as an IPI.
|
||||
*/
|
||||
MPASS(curthread->td_md.md_spinlock_count == 0);
|
||||
|
||||
CPU_FOREACH(i) {
|
||||
if (CPU_ISSET(i, &map))
|
||||
ncpus++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user