Jason Gunthorpe d54f23c09e RDMA/cma: Simplify DEVICE_REMOVAL for internal_id
cma_process_remove() triggers an unconditional rdma_destroy_id() for
internal_id's and skips the event deliver and transition through
RDMA_CM_DEVICE_REMOVAL.

This is confusing and unnecessary. internal_id always has
cma_listen_handler() as the handler, have it catch the
RDMA_CM_DEVICE_REMOVAL event and directly consume it and signal removal.

This way the FSM sequence never skips the DEVICE_REMOVAL case and the
logic in this hard to test area is simplified.

Link: https://lore.kernel.org/r/20200723070707.1771101-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-07-29 14:10:01 -03:00
..
2020-01-25 15:11:37 -04:00
2020-05-29 16:09:02 -03:00
2020-03-04 14:28:25 -04:00
2020-06-24 16:43:45 -03:00
2020-06-02 20:32:53 -03:00
2019-06-28 21:18:23 -03:00
2018-12-12 07:40:16 -07:00
2020-06-05 14:05:57 -07:00
2018-12-12 07:40:16 -07:00
2020-07-06 14:54:46 -03:00
2020-05-27 16:05:05 -03:00