net/smc: do not wait under send_lock
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 30 Jan 2019 17:51:05 +0000 (18:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 22:45:45 +0000 (14:45 -0800)
commit33f3fcc290671590821ff3c0c9396db1ec9b7d4c
tree1baa87c3e5445442407de727689946b54a8c728c
parent51c5aba3b672c4285fca052817f34b22dc79dda7
net/smc: do not wait under send_lock

smc_cdc_get_free_slot() might wait for free transfer buffers when using
SMC-R. This wait should not be done under the send_lock, which is a
spin_lock. This fixes a cpu loop in parallel threads waiting for the
send_lock.

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