diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2019-02-12 16:29:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 11:59:44 -0500 |
commit | 5bc056d8d0e3f5f896eb747d42d1e3aa8ceaf1b0 (patch) | |
tree | 8b56ad1be5ab1fff08aad77163c898a34aee86d7 /net/smc/smc_cdc.c | |
parent | 4dff63c25ebf8963065323964cf1c24e290b6ced (diff) | |
download | linux-5bc056d8d0e3f5f896eb747d42d1e3aa8ceaf1b0.tar.bz2 |
net/smc: move wake up of close waiter
Move the call to smc_close_wake_tx_prepared() (which wakes up a possibly
waiting close processing that might wait for 'all data sent') to
smc_tx_sndbuf_nonempty() (which is the main function to send data).
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>
Diffstat (limited to 'net/smc/smc_cdc.c')
-rw-r--r-- | net/smc/smc_cdc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/smc/smc_cdc.c b/net/smc/smc_cdc.c index 99d9d6e85dfb..780b36c69292 100644 --- a/net/smc/smc_cdc.c +++ b/net/smc/smc_cdc.c @@ -290,8 +290,6 @@ static void smc_cdc_msg_recv_action(struct smc_sock *smc, /* trigger sndbuf consumer: RDMA write into peer RMBE and CDC */ if (diff_cons && smc_tx_prepared_sends(conn)) { smc_tx_sndbuf_nonempty(conn); - /* trigger socket release if connection closed */ - smc_close_wake_tx_prepared(smc); } if (diff_cons && conn->urg_tx_pend && atomic_read(&conn->peer_rmbe_space) == conn->peer_rmbe_size) { |