aboutsummaryrefslogtreecommitdiffstats
path: root/net/smc/smc_core.c
diff options
context:
space:
mode:
authorHans Wippel <hwippel@linux.ibm.com>2019-02-07 15:56:18 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-07 18:06:18 -0800
commit72a36a8aecb520f8af6529476dae16f7b6a3d87e (patch)
tree19042bc7e16bd0e428fd7690638605fd44facefc /net/smc/smc_core.c
parentnet/smc: unlock LGR pending lock earlier for SMC-D (diff)
downloadlinux-dev-72a36a8aecb520f8af6529476dae16f7b6a3d87e.tar.xz
linux-dev-72a36a8aecb520f8af6529476dae16f7b6a3d87e.zip
net/smc: use client and server LGR pending locks for SMC-R
If SMC client and server connections are both established at the same time, smc_connect_rdma() cannot send a CLC confirm message while smc_listen_work() is waiting for one due to lock contention. This can result in timeouts in smc_clc_wait_msg() and failed SMC connections. In case of SMC-R, there are two types of LGRs (client and server LGRs) which can be protected by separate locks. So, this patch splits the LGR pending lock into two separate locks for client and server to avoid the locking issue for SMC-R. Signed-off-by: Hans Wippel <hwippel@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions