]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rdma_cm: Make rdma_addr_cancel into a fence
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 3 Apr 2018 04:52:03 +0000 (07:52 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 18 Apr 2018 01:42:50 +0000 (19:42 -0600)
commit6eabc0747705bd16a51ab1cc36c6eb6c5f8c43b8
treefabd21557714f031549f154f13712ce6044577ca
parente8a68776130ca4cea01cc82ec46ebd2b8b35e687
RDMA/rdma_cm: Make rdma_addr_cancel into a fence

Currently rdma_addr_cancel does not prevent the callback from being used,
this is surprising and hard to reason about. There does not appear to be a
bug here as the only user of this API does refcount properly, fixing it
only to increase clarity.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/addr.c