net/smc: no urgent data check for listen sockets
Don't check a listen socket for pending urgent data in smc_poll(). Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
dd65d87a6a
commit
71d117f527
|
@ -1566,9 +1566,9 @@ static __poll_t smc_poll(struct file *file, struct socket *sock,
|
||||||
mask |= EPOLLIN | EPOLLRDNORM | EPOLLRDHUP;
|
mask |= EPOLLIN | EPOLLRDNORM | EPOLLRDHUP;
|
||||||
if (sk->sk_state == SMC_APPCLOSEWAIT1)
|
if (sk->sk_state == SMC_APPCLOSEWAIT1)
|
||||||
mask |= EPOLLIN;
|
mask |= EPOLLIN;
|
||||||
|
if (smc->conn.urg_state == SMC_URG_VALID)
|
||||||
|
mask |= EPOLLPRI;
|
||||||
}
|
}
|
||||||
if (smc->conn.urg_state == SMC_URG_VALID)
|
|
||||||
mask |= EPOLLPRI;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return mask;
|
return mask;
|
||||||
|
|
Loading…
Reference in New Issue