OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:35:33 +0000 (20:35 +0100)
commit82060d9311250f2fe9893b89ae13ba0cb6a9d43f
tree305eade1441899727b8bc9dea57954cde4967c57
parent146f563f9761e070e6ef45e073bdc046035f39a0
net/smc: do not wait under send_lock

[ Upstream commit 33f3fcc290671590821ff3c0c9396db1ec9b7d4c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/smc/smc_tx.c