numa: only ignore the unspecified node during placement when numa is available

Serj Kalichev reported a problem with irqbalance on non-numa systems, indicating
that irqs were not balanced because the placement algorithm ignores the
unspecified node.  We need to not do that, but only in cases where we don't have
any other nodes.  If we have a valid numa system, then we want to always choose
one of the real nodes over the unspecified one, but in non-numa systems we can
and should allow the selection of the unspecified (and only) node

Signed-off-by: Neil Horman <>
Reported-by: Serj Kalichev <>
This commit is contained in:
Neil Horman 2012-03-23 15:02:30 -04:00
parent e9e9dda303
commit 1189cd6f19

View file

@ -48,7 +48,7 @@ static void find_best_object(struct topo_obj *d, void *data)
* Don't consider the unspecified numa node here
if ((d->obj_type == OBJ_TYPE_NODE) && (d->number == -1))
if (numa_avail && (d->obj_type == OBJ_TYPE_NODE) && (d->number == -1))