]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sunrpc/xprtsock.c
SUNRPC: Ensure we close the socket on EPIPE errors too...
[linux-2.6-omap-h63xx.git] / net / sunrpc / xprtsock.c
index f05a56e597ef53ed0e0d97581fcfbe0262534c85..fbc8725c20cbcfaed6d458e79e470393bb980ffc 100644 (file)
@@ -726,10 +726,10 @@ static int xs_tcp_send_request(struct rpc_task *task)
                dprintk("RPC:       sendmsg returned unrecognized error %d\n",
                        -status);
        case -ECONNRESET:
+       case -EPIPE:
                xs_tcp_shutdown(xprt);
        case -ECONNREFUSED:
        case -ENOTCONN:
-       case -EPIPE:
                clear_bit(SOCK_ASYNC_NOSPACE, &transport->sock->flags);
        }
 out: