]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: add a numa_node field to struct nvme_ctrl
authorHannes Reinecke <hare@suse.com>
Fri, 16 Nov 2018 08:22:29 +0000 (09:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Dec 2018 05:26:55 +0000 (22:26 -0700)
commita765268ae80422ee4f2ebb878a92aebabf47cb36
tree67151073e75ed659186af3fdd229e498e87730fa
parentd7f7040fcbac13031c6d75eae3f68613961f1a48
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>
drivers/nvme/host/core.c
drivers/nvme/host/fc.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h
drivers/nvme/host/rdma.c