RDMA/rtrs: Cleanup the code in rtrs_srv_rdma_cm_handler
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Thu, 25 Mar 2021 15:32:56 +0000 (16:32 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Apr 2021 18:40:43 +0000 (15:40 -0300)
commit57dae8baa6388af4a1e9a58cb29f9c08375a09fa
treee09cf34add99064d873768ccda8c91e5e172d8eb
parent4cd5261df989a49e52c0e1aa989dc6b21ca947f3
RDMA/rtrs: Cleanup the code in rtrs_srv_rdma_cm_handler

Let these cases share the same path since all of them need to close
session.

Link: https://lore.kernel.org/r/20210325153308.1214057-11-gi-oh.kim@ionos.com
Signed-off-by: Guoqing Jiang <guoqing.jiang@ionos.com>
Reviewed-by: Danil Kipnis <danil.kipnis@ionos.com>
Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-srv.c