nvme-rdma: Use ibdev_to_node instead of dereferencing ->dma_device
authorChristoph Hellwig <hch@lst.de>
Fri, 6 Nov 2020 18:19:35 +0000 (19:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2021 09:12:59 +0000 (10:12 +0100)
commit95c0528c11b234c6292448f6d2963fc5979ca9be
tree1fb447dbca2a9fd379d0e75ab6228496934625c7
parent225d207da2e1169aee30faaa71bd7cf70c7277a3
nvme-rdma: Use ibdev_to_node instead of dereferencing ->dma_device

commit 22dd4c707673129ed17e803b4bf68a567b2731db upstream.

->dma_device is a private implementation detail of the RDMA core.  Use the
ibdev_to_node helper to get the NUMA node for a ib_device instead of
poking into ->dma_device.

Link: https://lore.kernel.org/r/20201106181941.1878556-5-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Cc: Krishnamraju Eraparaju <krishna2@chelsio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/rdma.c