Skip to content

Commit 4fea243

Browse files
Max GurtovoyChristoph Hellwig
authored andcommitted
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 <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 0b8eb62 commit 4fea243

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/nvme/host/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4174,6 +4174,7 @@ int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
41744174
ctrl->dev = dev;
41754175
ctrl->ops = ops;
41764176
ctrl->quirks = quirks;
4177+
ctrl->numa_node = NUMA_NO_NODE;
41774178
INIT_WORK(&ctrl->scan_work, nvme_scan_work);
41784179
INIT_WORK(&ctrl->async_event_work, nvme_async_event_work);
41794180
INIT_WORK(&ctrl->fw_act_work, nvme_fw_act_work);

0 commit comments

Comments
 (0)