WSL2-Linux-Kernel/net/smc
Ursula Braun d7cf4a3bf3 net/smc: fix smc_poll in SMC_INIT state
smc_poll() returns with mask bit EPOLLPRI if the connection urg_state
is SMC_URG_VALID. Since SMC_URG_VALID is zero, smc_poll signals
EPOLLPRI errorneously if called in state SMC_INIT before the connection
is created, for instance in a non-blocking connect scenario.

This patch switches to non-zero values for the urg states.

Reviewed-by: Karsten Graul <kgraul@linux.ibm.com>
Fixes: de8474eb9d ("net/smc: urgent data support")
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-02-21 10:19:20 -08:00
..
Kconfig
Makefile
af_smc.c net/smc: recvmsg and splice_read should return 0 after shutdown 2019-02-01 14:45:45 -08:00
smc.h net/smc: fix smc_poll in SMC_INIT state 2019-02-21 10:19:20 -08:00
smc_cdc.c net/smc: fix byte_order for rx_curs_confirmed 2019-02-08 22:33:25 -08:00
smc_cdc.h net/smc: fix byte_order for rx_curs_confirmed 2019-02-08 22:33:25 -08:00
smc_clc.c net/smc: fix another sizeof to int comparison 2019-02-01 14:45:44 -08:00
smc_clc.h net/smc: short wait for late smc_clc_wait_msg 2018-11-23 17:20:32 -08:00
smc_close.c net/smc: correct state change for peer closing 2019-02-04 09:11:19 -08:00
smc_close.h
smc_core.c net/smc: delete rkey first before switching to unused 2019-02-04 09:11:19 -08:00
smc_core.h net/smc: preallocated memory for rdma work requests 2019-02-04 09:11:19 -08:00
smc_diag.c
smc_ib.c net/smc: use device link provided in qp_context 2019-02-01 14:45:45 -08:00
smc_ib.h
smc_ism.c net/smc: add SMC-D shutdown signal 2018-11-21 16:14:56 -08:00
smc_ism.h net/smc: add SMC-D shutdown signal 2018-11-21 16:14:56 -08:00
smc_llc.c net/smc: preallocated memory for rdma work requests 2019-02-04 09:11:19 -08:00
smc_llc.h net/smc: add infrastructure to send delete rkey messages 2018-11-23 17:20:32 -08:00
smc_pnet.c net/smc: allow 16 byte pnetids in netlink policy 2019-02-01 14:45:44 -08:00
smc_pnet.h
smc_rx.c
smc_rx.h
smc_tx.c net/smc: fix sender_free computation 2019-02-04 09:11:19 -08:00
smc_tx.h
smc_wr.c net/smc: preallocated memory for rdma work requests 2019-02-04 09:11:19 -08:00
smc_wr.h net/smc: preallocated memory for rdma work requests 2019-02-04 09:11:19 -08:00