summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2019-10-10 11:16:10 +0300
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-10-11 05:08:41 +0300
commit882dcfe5a1785c20f45820cbe6fec4b8b647c946 (patch)
tree7f11be8258d79a3d48af2953b66eb796e2d3651b /fs
parent29ee2701529e1905c0e948688f9688c68c8d4ea4 (diff)
downloadlinux-882dcfe5a1785c20f45820cbe6fec4b8b647c946.tar.xz
net/smc: receive returns without data
smc_cdc_rxed_any_close_or_senddone() is used as an end condition for the receive loop. This conflicts with smc_cdc_msg_recv_action() which could run in parallel and set the bits checked by smc_cdc_rxed_any_close_or_senddone() before the receive is processed. In that case we could return from receive with no data, although data is available. The same applies to smc_rx_wait(). Fix this by checking for RCV_SHUTDOWN only, which is set in smc_cdc_msg_recv_action() after the receive was actually processed. Fixes: 952310ccf2d8 ("smc: receive data from RMBE") Reviewed-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions