diff options
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r-- | net/sunrpc/svcsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 305374d4fb98..0da6785ec15a 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -442,7 +442,7 @@ static void svc_tcp_write_space(struct sock *sk) | |||
442 | { | 442 | { |
443 | struct socket *sock = sk->sk_socket; | 443 | struct socket *sock = sk->sk_socket; |
444 | 444 | ||
445 | if (sk_stream_wspace(sk) >= sk_stream_min_wspace(sk) && sock) | 445 | if (sk_stream_is_writeable(sk) && sock) |
446 | clear_bit(SOCK_NOSPACE, &sock->flags); | 446 | clear_bit(SOCK_NOSPACE, &sock->flags); |
447 | svc_write_space(sk); | 447 | svc_write_space(sk); |
448 | } | 448 | } |