nvme: add a numa_node field to struct nvme_ctrl
Instead of directly poking into the struct device add a new numa_node field to struct nvme_ctrl. This allows fabrics drivers where ctrl->dev is a virtual device to support NUMA affinity as well. Also expose the field as a sysfs attribute, and populate it for the RDMA and FC transports. Signed-off-by:Hannes Reinecke <hare@suse.com> Reviewed-by:
Sagi Grimberg <sagi@grimberg.me> Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- drivers/nvme/host/core.c 3 additions, 1 deletiondrivers/nvme/host/core.c
- drivers/nvme/host/fc.c 3 additions, 2 deletionsdrivers/nvme/host/fc.c
- drivers/nvme/host/multipath.c 2 additions, 2 deletionsdrivers/nvme/host/multipath.c
- drivers/nvme/host/nvme.h 1 addition, 0 deletionsdrivers/nvme/host/nvme.h
- drivers/nvme/host/rdma.c 3 additions, 2 deletionsdrivers/nvme/host/rdma.c
Loading
Please register or sign in to comment