]> git.baikalelectronics.ru Git - kernel.git/commit
device-dax: Add a 'target_node' attribute
authorDan Williams <dan.j.williams@intel.com>
Wed, 20 Feb 2019 19:39:36 +0000 (11:39 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 20 Feb 2019 19:39:36 +0000 (11:39 -0800)
commit21c75763a3ae18679e5c4e2260aa9379b073566b
treee9a1881968a95aac7c70bcc1b6a3b448b46254e2
parent664525b2d84abca1074c9546654ae9689de8a818
device-dax: Add a 'target_node' attribute

The target-node attribute is the Linux numa-node that a device-dax
instance may create when it is online. Prior to being online the
device's 'numa_node' property reflects the closest online cpu node which
is the typical expectation of a device 'numa_node'. Once it is online it
becomes its own distinct numa node, i.e. 'target_node'.

Export the 'target_node' property to give userspace tooling the ability
to predict the effective numa-node from a device-dax instance configured
to provide 'System RAM' capacity.

Cc: Vishal Verma <vishal.l.verma@intel.com>
Reported-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/bus.c