]> git.baikalelectronics.ru Git - kernel.git/commit
IB/cm: Remove now useless rcu_lock in dst_fetch_ha
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 27 Jun 2018 07:44:26 +0000 (10:44 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 29 Jun 2018 17:45:50 +0000 (11:45 -0600)
commitf9eef7dbc6f8ee015885ea00b712e619c1727b34
tree0049507f486777a58a9cdb139c6225bfac8a7df8
parentc3d567449d24f60b18488ba04236acc503ba4f69
IB/cm: Remove now useless rcu_lock in dst_fetch_ha

This lock used to be protecting a call to dst_get_neighbour_noref,
however the below commit changed it to dst_neigh_lookup which no longer
requires rcu.

Access to nud_state, neigh_event_send or rdma_copy_addr does not require
RCU, so delete the lock.

Fixes: b15a1362979b ("infiniband: Convert dst_fetch_ha() over to dst_neigh_lookup().")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/addr.c