RDMA/rtrs-srv: Release lock before call into close_sess
authorJack Wang <jinpu.wang@cloud.ionos.com>
Thu, 17 Dec 2020 14:18:59 +0000 (15:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:56 +0000 (11:37 +0100)
commite3d74840c73e04a6ac7de6b22ef7c66762a6dbba
tree92fc2b1414bd4bdcf9eb8ccc50ff6c2f610c4b9e
parent0a131e09e4e2fb5967a718dec0fb087d91fb85d8
RDMA/rtrs-srv: Release lock before call into close_sess

[ Upstream commit 99f0c3807973359bba8f37d9198eea59fe38c32a ]

In this error case, we don't need hold mutex to call close_sess.

Fixes: 9cb837480424 ("RDMA/rtrs: server: main functionality")
Link: https://lore.kernel.org/r/20201217141915.56989-4-jinpu.wang@cloud.ionos.com
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Tested-by: Lutz Pogrell <lutz.pogrell@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/ulp/rtrs/rtrs-srv.c