patch-2.3.99-pre4 linux/net/decnet/dn_nsp_out.c

Next file: linux/net/ipv4/af_inet.c
Previous file: linux/net/decnet/dn_nsp_in.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre3/linux/net/decnet/dn_nsp_out.c linux/net/decnet/dn_nsp_out.c
@@ -133,13 +133,13 @@
 		}
 
 		if (space < len) {
-			sk->socket->flags |= SO_NOSPACE;
+			set_bit(SOCK_ASYNC_NOSPACE, &sk->socket->flags);
 			if (noblock) {
 				*err = EWOULDBLOCK;
 				break;
 			}
 
-			sk->socket->flags &= ~SO_NOSPACE;
+			clear_bit(SOCK_ASYNC_WAITDATA, &sk->socket->flags);
 			SOCK_SLEEP_PRE(sk)
 
 			if ((sk->sndbuf - atomic_read(&sk->wmem_alloc)) < len)

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