patch-2.4.0-test9 linux/net/sunrpc/xprt.c

Next file: linux/net/x25/af_x25.c
Previous file: linux/net/sunrpc/sysctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test8/linux/net/sunrpc/xprt.c linux/net/sunrpc/xprt.c
@@ -1037,7 +1037,7 @@
 		return;
 
 	/* Wait until we have enough socket memory */
-	if (sock_wspace(sk) < min(sk->sndbuf,XPRT_MIN_WRITE_SPACE))
+	if (!sock_writeable(sk))
 		return;
 
 	spin_lock_bh(&xprt_sock_lock);
@@ -1212,9 +1212,6 @@
 	 */
 	while (1) {
 		xprt->write_space = 0;
-		status = -ENOMEM;
-		if (sock_wspace(xprt->inet) < req->rq_slen + SOCK_MIN_WRITE_SPACE)
-			break;
 		status = xprt_sendmsg(xprt, req);
 
 		if (status < 0)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)