diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2020-06-16 12:34:21 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-06-24 18:37:08 +0200 |
commit | 4fea243ebce40e2e4193d7d25eabfd963c46ef8c (patch) | |
tree | 3fae95888b7402234c6f4b326bc5cd3c967a53f1 /drivers/nvme | |
parent | 0b8eb629a700c0ef15a437758db8255f8444e76c (diff) |
nvme: set initial value for controller's numa node
Initialize the node to NUMA_NO_NODE value. Transports that are aware of
numa node affinity can override it (e.g. RDMA transport set the affinity
according to the RDMA HCA).
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index c2c5bc4fb702..915fa2e609eb 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -4174,6 +4174,7 @@ int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev, ctrl->dev = dev; ctrl->ops = ops; ctrl->quirks = quirks; + ctrl->numa_node = NUMA_NO_NODE; INIT_WORK(&ctrl->scan_work, nvme_scan_work); INIT_WORK(&ctrl->async_event_work, nvme_async_event_work); INIT_WORK(&ctrl->fw_act_work, nvme_fw_act_work); |