patch-1.3.26 linux/net/core/sock.c

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

diff -u --recursive --new-file v1.3.25/linux/net/core/sock.c linux/net/core/sock.c
@@ -65,6 +65,7 @@
  *		Alan Cox	:	Allow anyone to clear SO_DEBUG
  *					(compatibility fix)
  *		Alan Cox	:	Added optimistic memory grabbing for AF_UNIX throughput.
+ *		Alan Cox	:	Allocator for a socket is settable.
  *
  * To Fix:
  *
@@ -448,7 +449,7 @@
 		}
 		
 		if(!fallback)
-			skb = sock_wmalloc(sk, size, 0, GFP_KERNEL);
+			skb = sock_wmalloc(sk, size, 0, sk->allocation);
 		else
 		{
 			/* The buffer get won't block, or use the atomic queue. It does

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected] with Sam's (original) version
of this