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)
commit44e75052bc2ae4d39386c1d9e218861639905873
treefabd21557714f031549f154f13712ce6044577ca
parente19c0d237873be2426dac45887edf293da13c339
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