]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
RDMA/cma: Remove cma_comp()
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 2 Sep 2020 08:11:18 +0000 (11:11 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 17 Sep 2020 12:09:24 +0000 (09:09 -0300)
commit5cfbf9291e1d56b28df30929a5b4bb2d70193855
tree1c33e0de2aeb98e6622a120150e93343c7e226fb
parentd490ee52f0a5dbd9d1bccabd6bf00c40c1234a79
RDMA/cma: Remove cma_comp()

The only place that still uses it is rdma_join_multicast() which is only
doing a sanity check that the caller hasn't done something wrong and
doesn't need the spinlock.

At least in the case of rdma_join_multicast() the information it needs
will remain until the ID is destroyed once it enters these
states. Similarly there is no reason to check for these specific states in
the handler callback, instead use the usual check for a destroyed id under
the handler_mutex.

Link: https://lore.kernel.org/r/20200902081122.745412-5-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cma.c