projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd65d87
)
net/smc: no urgent data check for listen sockets
author
Karsten Graul
<
[email protected]
>
Tue, 18 Sep 2018 13:46:37 +0000
(15:46 +0200)
committer
David S. Miller
<
[email protected]
>
Wed, 19 Sep 2018 03:11:43 +0000
(20:11 -0700)
Don't check a listen socket for pending urgent data in smc_poll().
Signed-off-by: Karsten Graul <
[email protected]
>
Signed-off-by: Ursula Braun <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/smc/af_smc.c
patch
|
blob
|
history
diff --git
a/net/smc/af_smc.c
b/net/smc/af_smc.c
index 5c6d30eb4a71bf882e6f0f574993381cfdcd8385..015231789ed2edf55f3cd99978496b2b5e9d0bac 100644
(file)
--- a/
net/smc/af_smc.c
+++ b/
net/smc/af_smc.c
@@
-1566,9
+1566,9
@@
static __poll_t smc_poll(struct file *file, struct socket *sock,
mask |= EPOLLIN | EPOLLRDNORM | EPOLLRDHUP;
if (sk->sk_state == SMC_APPCLOSEWAIT1)
mask |= EPOLLIN;
+ if (smc->conn.urg_state == SMC_URG_VALID)
+ mask |= EPOLLPRI;
}
- if (smc->conn.urg_state == SMC_URG_VALID)
- mask |= EPOLLPRI;
}
return mask;