]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: reduce active tcp_listen workers
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 10 Sep 2020 16:48:20 +0000 (18:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 22:24:26 +0000 (15:24 -0700)
commit8d4dc116db0e7135a3f8cd16625c1481f8e7146a
tree821da1d90afd0ce0aada4bc2df6a774162d42463
parent69fb908a3f94f2a8d589a883d2c8e88fe181755a
net/smc: reduce active tcp_listen workers

SMC starts a separate tcp_listen worker for every SMC socket in
state SMC_LISTEN, and can accept an incoming connection request only,
if this worker is really running and waiting in kernel_accept(). But
the number of running workers is limited.
This patch reworks the listening SMC code and starts a tcp_listen worker
after the SYN-ACK handshake on the internal clc-socket only.

Suggested-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Reviewed-by: Guvenc Gulce <guvenc@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c
net/smc/smc.h
net/smc/smc_close.c