[LTP] [PATCH v2 2/2] numa_helper: add min_nodes parameter to is_numa()

Cyril Hrubis chrubis@suse.cz
Thu Mar 3 14:35:48 CET 2016


Hi!
> get_allowed_nodes() can fail if callers request more nodes than
> are available. This patch changes is_numa() by adding a parameter
> to it, which allows to easily check that system supports NUMA and
> has at least certain number of nodes and it also updates tests
> that used get_allowed_nodes() without checking node count first.

Shouldn't we pass the NH_MEMS/NH_CPUS flags to the is_numa() as well?

Otherwise the patchset looks good to me.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list