]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: longer delay when freeing client link groups
authorUrsula Braun <ubraun@linux.ibm.com>
Wed, 23 May 2018 14:38:12 +0000 (16:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 20:02:35 +0000 (16:02 -0400)
commit365f46da09abd8d17ecb15b72f10723421aea8a8
treee2cb35eac4fd3eff9adff6184906f7f33081bc71
parent29e9a70c01d6f5598ebed76a0310b2a8d1073a42
net/smc: longer delay when freeing client link groups

Client link group creation always follows the server linkgroup creation.
If peer creates a new server link group, client has to create a new
client link group. If peer reuses a server link group for a new
connection, client has to reuse its client link group as well. To
avoid out-of-sync conditions for link groups a longer delay for
for client link group removal is defined to make sure this link group
still exists, once the peer decides to reuse a server link group.

Currently the client link group delay time is just 10 jiffies larger
than the server link group delay time. This patch increases the delay
difference to 10 seconds to have a better protection against
out-of-sync link groups.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c