Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162243AbWKPCr4 (ORCPT ); Wed, 15 Nov 2006 21:47:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1162256AbWKPCrz (ORCPT ); Wed, 15 Nov 2006 21:47:55 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:10632 "EHLO sous-sol.org") by vger.kernel.org with ESMTP id S1162254AbWKPCr3 (ORCPT ); Wed, 15 Nov 2006 21:47:29 -0500 Message-Id: <20061116024633.882512000@sous-sol.org> References: <20061116024332.124753000@sous-sol.org> User-Agent: quilt/0.45-1 Date: Wed, 15 Nov 2006 18:43:46 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, David Miller , bunk@stusta.de, Larry Woodman Subject: [patch 14/30] NET: __alloc_pages() failures reported due to fragmentation Content-Disposition: inline; filename=net-__alloc_pages-failures-reported-due-to-fragmentation.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1301 Lines: 38 -stable review patch. If anyone has any objections, please let us know. ------------------ From: David Miller We have seen a couple of __alloc_pages() failures due to fragmentation, there is plenty of free memory but no large order pages available. I think the problem is in sock_alloc_send_pskb(), the gfp_mask includes __GFP_REPEAT but its never used/passed to the page allocator. Shouldnt the gfp_mask be passed to alloc_skb() ? Signed-off-by: Larry Woodman Signed-off-by: David S. Miller Signed-off-by: Chris Wright --- --- net/core/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.18.2.orig/net/core/sock.c +++ linux-2.6.18.2/net/core/sock.c @@ -1164,7 +1164,7 @@ static struct sk_buff *sock_alloc_send_p goto failure; if (atomic_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf) { - skb = alloc_skb(header_len, sk->sk_allocation); + skb = alloc_skb(header_len, gfp_mask); if (skb) { int npages; int i; -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/