RDMA/rtrs-clt: During add_path change for_new_clt according to path_num
authorMd Haris Iqbal <haris.iqbal@ionos.com>
Fri, 6 Aug 2021 11:21:07 +0000 (13:21 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Sun, 22 Aug 2021 22:22:58 +0000 (19:22 -0300)
commitac5e8814698c7ceb7188855117b589bc8dd1875e
tree9af990695c1e093f12abe41cd66cdb95fb00e0a4
parent1a010d73ef63f3672af2f491321ee2ab6e307d0f
RDMA/rtrs-clt: During add_path change for_new_clt according to path_num

When all the paths are removed for a session, the addition of the first
path is like a new session for the storage server.

Hence, for_new_clt has to be set to 1.

Link: https://lore.kernel.org/r/20210806112112.124313-2-haris.iqbal@ionos.com
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-clt.c