iokernel: numa policy fix for no hyperthreads
@@ -210,6 +210,7 @@ static unsigned int numa_choose_core(struct proc *p)
DEFINE_BITMAP(core_subset, NCPU);
/* first try to find a matching active hyperthread */
+ if (!cfg.noht) {
sched_for_each_allowed_core(core, tmp) {
unsigned int sib = sched_siblings[core];
if (cores[core] != sd)
@@ -220,6 +221,7 @@ static unsigned int numa_choose_core(struct proc *p)
return sib;
}
+ }
/* then try to find a core on the preferred socket */
bitmap_and(core_subset, sched_allowed_cores,
