[PATCH v3] net/smc: fix TCP fallback socket release

2019-01-03 Thread Myungho Jung
clcsock can be released while kernel_accept() references it in TCP listen worker. Also, clcsock needs to wake up before released if TCP fallback is used and the clcsock is blocked by accept. Add a lock to safely release clcsock and call kernel_sock_shutdown() to wake up clcsock from accept in smc_r

Re: [PATCH v3] net/smc: fix TCP fallback socket release

2018-12-18 Thread David Miller
From: Myungho Jung Date: Tue, 18 Dec 2018 09:02:25 -0800 > clcsock can be released while kernel_accept() references it in TCP > listen worker. Also, clcsock needs to wake up before released if TCP > fallback is used and the clcsock is blocked by accept. Add a lock to > safely release clcsock and

[PATCH v3] net/smc: fix TCP fallback socket release

2018-12-18 Thread Myungho Jung
clcsock can be released while kernel_accept() references it in TCP listen worker. Also, clcsock needs to wake up before released if TCP fallback is used and the clcsock is blocked by accept. Add a lock to safely release clcsock and call kernel_sock_shutdown() to wake up clcsock from accept in smc_r