RDMA/cma: Combine cma_ndev_work with cma_work
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 2 Sep 2020 08:11:19 +0000 (11:11 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 17 Sep 2020 12:09:24 +0000 (09:09 -0300)
commit7e85bcda8bfe883f4244672ed79f81b7762a1a7e
tree951b40d9b999ae38955f4b7bc755d7026ddc23dc
parent5cfbf9291e1d56b28df30929a5b4bb2d70193855
RDMA/cma: Combine cma_ndev_work with cma_work

These are the same thing, except that cma_ndev_work doesn't have a state
transition. Signal no state transition by setting old_state and new_state
== 0.

In all cases the handler function should not be called once
rdma_destroy_id() has progressed passed setting the state.

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