]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rxe: Use rdma_read_gid_attr_ndev_rcu to access netdev
authorParav Pandit <parav@mellanox.com>
Thu, 2 May 2019 07:48:05 +0000 (10:48 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 May 2019 14:10:03 +0000 (11:10 -0300)
commitb8a9e0ec0acebdcc4aa0b8ba67a7ac6629a83e24
treee805d3cf2844ad0ce3720ecb138e33c551038cbc
parente1b6d5f2a0f81e964f1aa27b5b8fd481f44c11f9
RDMA/rxe: Use rdma_read_gid_attr_ndev_rcu to access netdev

Use rdma_read_gid_attr_ndev_rcu() to access netdevice attached to GID
entry under rcu lock.

This ensures that while working on the netdevice of the GID, it doesn't
get freed.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_net.c