diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 5423223e93c2..5eca9060bb8e 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -499,7 +499,7 @@ unsigned int tcp_poll(struct file *file, struct socket *sock, poll_table *wait) | |||
499 | mask |= POLLIN | POLLRDNORM; | 499 | mask |= POLLIN | POLLRDNORM; |
500 | 500 | ||
501 | if (!(sk->sk_shutdown & SEND_SHUTDOWN)) { | 501 | if (!(sk->sk_shutdown & SEND_SHUTDOWN)) { |
502 | if (sk_stream_wspace(sk) >= sk_stream_min_wspace(sk)) { | 502 | if (sk_stream_is_writeable(sk)) { |
503 | mask |= POLLOUT | POLLWRNORM; | 503 | mask |= POLLOUT | POLLWRNORM; |
504 | } else { /* send SIGIO later */ | 504 | } else { /* send SIGIO later */ |
505 | set_bit(SOCK_ASYNC_NOSPACE, | 505 | set_bit(SOCK_ASYNC_NOSPACE, |
@@ -510,7 +510,7 @@ unsigned int tcp_poll(struct file *file, struct socket *sock, poll_table *wait) | |||
510 | * wspace test but before the flags are set, | 510 | * wspace test but before the flags are set, |
511 | * IO signal will be lost. | 511 | * IO signal will be lost. |
512 | */ | 512 | */ |
513 | if (sk_stream_wspace(sk) >= sk_stream_min_wspace(sk)) | 513 | if (sk_stream_is_writeable(sk)) |
514 | mask |= POLLOUT | POLLWRNORM; | 514 | mask |= POLLOUT | POLLWRNORM; |
515 | } | 515 | } |
516 | } else | 516 | } else |