[PATCH] nvme: avoid crashes when node 0 is memoryless node.
Keith Busch
keith.busch at intel.com
Mon Jun 20 08:44:39 PDT 2016
On Mon, Jun 20, 2016 at 09:33:17AM +0900, Masayoshi Mizuma wrote:
> When CONFIG_NUMA is enabled and node 0 is memoryless, the system
> crashes because nvme_probe() sets the device->numa_node to 0 by
> set_dev_node(&pdev->dev, 0), so it tries to allocate memory from node 0.
> To avoid the crash, we should change the 0 to first_memory_node.
>
> Signed-off-by: Masayoshi Mizuma <m.mizuma at jp.fujitsu.com>
Thanks for the fix.
Reviewed-by: Keith Busch <keith.busch at intel.com>
More information about the Linux-nvme
mailing list