summaryrefslogtreecommitdiffstats
path: root/net/smc/af_smc.c
diff options
context:
space:
mode:
authorStefan Raspl <stefan.raspl@linux.ibm.com>2018-05-03 18:12:37 +0200
committerDavid S. Miller <davem@davemloft.net>2018-05-04 11:45:06 -0400
commitb51fa1b135fbfc89e34d90b5bab563745d94186f (patch)
treece5c2803d4f55f65f6d1514621c5da520ae89f45 /net/smc/af_smc.c
parentc8b8ec8e0d605872c62909e7af54fb0bcb174d0c (diff)
downloadblackbird-obmc-linux-b51fa1b135fbfc89e34d90b5bab563745d94186f.tar.gz
blackbird-obmc-linux-b51fa1b135fbfc89e34d90b5bab563745d94186f.zip
smc: make smc_rx_wait_data() generic
Turn smc_rx_wait_data into a generic function that can be used at various instances to wait on traffic to complete with varying criteria. Signed-off-by: Stefan Raspl <raspl@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>< Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/af_smc.c')
-rw-r--r--net/smc/af_smc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c
index 95b00e4c3396..a7495c84ae15 100644
--- a/net/smc/af_smc.c
+++ b/net/smc/af_smc.c
@@ -1089,7 +1089,7 @@ static int smc_accept(struct socket *sock, struct socket *new_sock,
release_sock(clcsk);
} else if (!atomic_read(&smc_sk(nsk)->conn.bytes_to_rcv)) {
lock_sock(nsk);
- smc_rx_wait_data(smc_sk(nsk), &timeo);
+ smc_rx_wait(smc_sk(nsk), &timeo, smc_rx_data_available);
release_sock(nsk);
}
}
OpenPOWER on IntegriCloud