Skip to content

Commit

Permalink
net/smc: no urgent data check for listen sockets
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
karstengr authored and davem330 committed Sep 19, 2018
1 parent dd65d87 commit 71d117f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/smc/af_smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 71d117f

Please sign in to comment.