net/smc: move wake up of close waiter
authorKarsten Graul <kgraul@linux.ibm.com>
Tue, 12 Feb 2019 15:29:51 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 16:59:44 +0000 (11:59 -0500)
commit5bc056d8d0e3f5f896eb747d42d1e3aa8ceaf1b0
tree8b56ad1be5ab1fff08aad77163c898a34aee86d7
parent4dff63c25ebf8963065323964cf1c24e290b6ced
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>
net/smc/smc_cdc.c
net/smc/smc_tx.c