Matias Bjørling
ef78e5ec92
ia64: export node_distance function
...
The numa_slit variable used by node_distance is available to a
module as long as it is linked at compile-time. However, it is
not available to loadable modules. Leading to errors such as:
ERROR: "numa_slit" [drivers/nvme/host/nvme-core.ko] undefined!
The error above is caused by the nvme multipath code that makes
use of node_distance for its path calculation. When the patch was
added, the lightnvm subsystem would select nvme and always compile
it in, leading to the node_distance call to always succeed.
However, when this requirement was removed, nvme could be compiled
in as a module, which exposed this bug.
This patch extracts node_distance to a function and exports it.
Since ACPI is depending on node_distance being a simple lookup to
numa_slit, the previous behavior is exposed as slit_distance and its
users updated.
Fixes: f333444708
"nvme: take node locality into account when selecting a path"
Fixes: 73569e1103
"lightnvm: remove dependencies on BLK_DEV_NVME and PCI"
Signed-off-by: Matias Bjøring <mb@lightnvm.io >
Signed-off-by: Tony Luck <tony.luck@intel.com >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2018-11-26 18:30:40 -08:00
..
2015-06-10 14:26:32 -07:00
2017-11-13 17:56:58 -08:00
2017-11-02 11:10:55 +01:00
2014-07-23 01:10:44 +02:00
2008-12-31 01:15:22 -05:00
2017-11-04 15:01:50 +01:00
2017-11-02 11:10:55 +01:00
2009-12-12 13:08:14 +01:00
2017-12-04 18:03:39 -05:00
2017-11-02 11:10:55 +01:00
2018-06-21 14:25:24 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-21 15:35:43 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-01 09:14:07 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2012-11-15 00:28:00 +01:00
2008-08-01 10:21:21 -07:00
2018-10-23 11:06:43 +01:00
2018-01-10 16:41:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2008-08-01 10:21:21 -07:00
2017-11-02 11:10:55 +01:00
2017-01-24 12:41:45 -05:00
2016-08-07 23:55:50 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-14 11:25:27 +02:00
2017-11-02 11:10:55 +01:00
2018-10-26 16:26:34 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-20 12:22:48 -07:00
2017-11-02 11:10:55 +01:00
2018-09-17 10:15:39 -07:00
2017-11-02 11:10:55 +01:00
2008-08-01 10:21:21 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-19 13:28:51 +02:00
2008-08-01 10:21:21 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-21 12:33:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2010-06-09 11:12:36 +02:00
2008-08-01 10:21:21 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-01 07:27:00 -07:00
2018-10-01 07:27:00 -07:00
2012-07-25 11:47:16 -07:00
2018-10-01 07:27:00 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2013-12-10 16:11:07 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2010-05-18 14:45:52 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2008-08-01 10:21:21 -07:00
2018-11-26 18:30:40 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-07 07:15:41 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-26 16:26:35 -07:00
2018-10-31 08:54:12 -07:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2017-11-02 11:10:55 +01:00
2018-01-09 10:45:37 +01:00
2008-08-01 10:21:21 -07:00
2008-08-01 10:21:21 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-09-23 16:20:10 -04:00
2017-11-02 11:10:55 +01:00
2018-01-09 23:21:02 +00:00
2017-11-02 11:10:55 +01:00
2018-08-01 13:43:38 -07:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:04 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2008-08-01 10:21:21 -07:00
2018-08-29 15:42:23 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2008-08-01 10:21:21 -07:00