]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rdma_cm: Delete rdma_addr_client
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 3 Apr 2018 04:52:04 +0000 (07:52 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 18 Apr 2018 01:42:50 +0000 (19:42 -0600)
commit2cbadc8fdf16be339817de8129d012f0d3b15e53
treeeb9a225dac8ea5a1706f800b4016220d324fba4a
parent6eabc0747705bd16a51ab1cc36c6eb6c5f8c43b8
RDMA/rdma_cm: Delete rdma_addr_client

The only thing it does is block module unload while work is posted from
rdma_resolve_ip().

However, this is not the right place to do this. The users of
rdma_resolve_ip() must ensure their own module does not unload until
rdma_resolve_ip() calls the callback, or until rdma_addr_cancel() is
called.

Similarly callers to rdma_addr_find_l2_eth_by_grh() must ensure their
module does not unload while they are calling code.

The only two users are already safe, so there is no need for this.

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