net/smc: Correct smc link connection counter in case of smc client
mainline inclusion from mainline-v5.14-rc6 commit 64513d26 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I79GVV CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=64513d269e8971aabb7e787955a1b320e3031306 -------------------------------- SMC clients may be assigned to a different link after the initial connection between two peers was established. In such a case, the connection counter was not correctly set. Update the connection counter correctly when a smc client connection is assigned to a different smc link. Fixes: 07d51580 ("net/smc: Add connection counters for links") Signed-off-by:Guvenc Gulce <guvenc@linux.ibm.com> Tested-by:
Karsten Graul <kgraul@linux.ibm.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Gengbiao Shen <shengengbiao@sangfor.com.cn>
Loading
Please sign in to comment