diff options
author | Ursula Braun <ubraun@linux.ibm.com> | 2019-02-21 12:56:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-21 10:19:20 -0800 |
commit | d7cf4a3bf3a83c977a29055e1c4ffada7697b31f (patch) | |
tree | 3190bfbcee4fe74e484be25bd7835d31fd362cc3 /init/do_mounts_md.c | |
parent | 64cc41e62a316b059b4f8eedc6bd5e35315c35f9 (diff) | |
download | linux-stable-d7cf4a3bf3a83c977a29055e1c4ffada7697b31f.tar.gz linux-stable-d7cf4a3bf3a83c977a29055e1c4ffada7697b31f.tar.bz2 linux-stable-d7cf4a3bf3a83c977a29055e1c4ffada7697b31f.zip |
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: de8474eb9d50 ("net/smc: urgent data support")
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'init/do_mounts_md.c')
0 files changed, 0 insertions, 0 deletions