Hi,
Is the purpose of smr_grace_wait() to round robin the curproc through
all CPUs, to make sure all CPUs have passed the quiescent state? Is
this line of thinking correct or flawed?
I was preparing a diff and wanted to know if it is safe to disable the
SMR kthread by commenting it out for testing purposes on amd64. Just a
simple yes/no would do!
Thanks
/*
* Block until all CPUs have crossed quiescent state.
*/
void
smr_grace_wait(void)
{
#ifdef MULTIPROCESSOR
CPU_INFO_ITERATOR cii;
struct cpu_info *ci, *ci_start;
ci_start = curcpu();
CPU_INFO_FOREACH(cii, ci) {
if (ci == ci_start)
continue;
sched_peg_curproc(ci);
}
atomic_clearbits_int(&curproc->p_flag, P_CPUPEG);
#endif /* MULTIPROCESSOR */
}