diff options
author | Ursula Braun <ubraun@linux.ibm.com> | 2018-04-26 18:18:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-27 21:02:52 +0300 |
commit | abb190f194d082cbb7520e692d78d3ddf050e7b1 (patch) | |
tree | cd5aa5a266ed465ffaf10810a058234d672fb8fe /net/smc/smc_rx.c | |
parent | 01d2f7e2cdd31becffafa0cb82809a5e36558ec0 (diff) | |
download | linux-abb190f194d082cbb7520e692d78d3ddf050e7b1.tar.xz |
net/smc: handle sockopt TCP_DEFER_ACCEPT
If sockopt TCP_DEFER_ACCEPT is set, the accept is delayed till
data is available.
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_rx.c')
-rw-r--r-- | net/smc/smc_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_rx.c b/net/smc/smc_rx.c index eff4e0d0bb31..af851d8df1f8 100644 --- a/net/smc/smc_rx.c +++ b/net/smc/smc_rx.c @@ -51,7 +51,7 @@ static void smc_rx_data_ready(struct sock *sk) * 1 if at least 1 byte available in rcvbuf or if socket error/shutdown. * 0 otherwise (nothing in rcvbuf nor timeout, e.g. interrupted). */ -static int smc_rx_wait_data(struct smc_sock *smc, long *timeo) +int smc_rx_wait_data(struct smc_sock *smc, long *timeo) { DEFINE_WAIT_FUNC(wait, woken_wake_function); struct smc_connection *conn = &smc->conn; |