]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: fix work request handling
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 8 Jul 2020 15:05:12 +0000 (17:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2020 19:35:15 +0000 (12:35 -0700)
commit1191307a6e003781a99502acda5d18a0026e745f
tree1a7fc7218b0640580dd0432418807571ab2da52f
parentebe3a33390320e86f39cbeb0dd492682731751ab
net/smc: fix work request handling

Wait for pending sends only when smc_switch_conns() found a link to move
the connections to. Do not wait during link freeing, this can lead to
permanent hang situations. And refuse to provide a new tx slot on an
unusable link.

Fixes: 983e309bb3b8 ("net/smc: switch connections to alternate link")
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_llc.c
net/smc/smc_wr.c