diff options
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r-- | net/dccp/proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 6c7c78b83940..ba64750f0387 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -336,7 +336,7 @@ unsigned int dccp_poll(struct file *file, struct socket *sock, | |||
336 | mask |= POLLIN | POLLRDNORM; | 336 | mask |= POLLIN | POLLRDNORM; |
337 | 337 | ||
338 | if (!(sk->sk_shutdown & SEND_SHUTDOWN)) { | 338 | if (!(sk->sk_shutdown & SEND_SHUTDOWN)) { |
339 | if (sk_stream_wspace(sk) >= sk_stream_min_wspace(sk)) { | 339 | if (sk_stream_is_writeable(sk)) { |
340 | mask |= POLLOUT | POLLWRNORM; | 340 | mask |= POLLOUT | POLLWRNORM; |
341 | } else { /* send SIGIO later */ | 341 | } else { /* send SIGIO later */ |
342 | set_bit(SOCK_ASYNC_NOSPACE, | 342 | set_bit(SOCK_ASYNC_NOSPACE, |
@@ -347,7 +347,7 @@ unsigned int dccp_poll(struct file *file, struct socket *sock, | |||
347 | * wspace test but before the flags are set, | 347 | * wspace test but before the flags are set, |
348 | * IO signal will be lost. | 348 | * IO signal will be lost. |
349 | */ | 349 | */ |
350 | if (sk_stream_wspace(sk) >= sk_stream_min_wspace(sk)) | 350 | if (sk_stream_is_writeable(sk)) |
351 | mask |= POLLOUT | POLLWRNORM; | 351 | mask |= POLLOUT | POLLWRNORM; |
352 | } | 352 | } |
353 | } | 353 | } |