diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-03-15 19:49:14 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-03-15 19:49:14 -0700 |
commit | dc9e0a9347e932e3fd3cd03e7ff241022ed6ea8a (patch) | |
tree | bdadbe546992ab275e1eb620f5411ace477cf5a5 /drivers/nvdimm | |
parent | a7e6c7015bf3e0cb467a2f6c0e1de985ee1a0ecb (diff) |
acpi, numa: fix pxm to online numa node associations
Commit 99759869faf1 "acpi: Add acpi_map_pxm_to_online_node()" added
support for mapping a given proximity to its nearest, by SLIT distance,
online node. However, it sometimes returns unexpected results due to the
fact that it switches from comparing the PXM node to the last node that
was closer than the current max.
for_each_online_node(n) {
dist = node_distance(node, n);
if (dist < min_dist) {
min_dist = dist;
node = n; <---- from this point we're using the
wrong node for node_distance()
Fixes: 99759869faf1 ("acpi: Add acpi_map_pxm_to_online_node()")
Cc: <stable@vger.kernel.org>
Reviewed-by: Toshi Kani <toshi.kani@hp.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm')
0 files changed, 0 insertions, 0 deletions