Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756691AbZFWCk6 (ORCPT ); Mon, 22 Jun 2009 22:40:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752337AbZFWCku (ORCPT ); Mon, 22 Jun 2009 22:40:50 -0400 Received: from mx2.redhat.com ([66.187.237.31]:38021 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbZFWCku (ORCPT ); Mon, 22 Jun 2009 22:40:50 -0400 Date: Mon, 22 Jun 2009 23:39:36 -0300 From: Arnaldo Carvalho de Melo To: David Miller Cc: mel@csn.ul.ie, akpm@linux-foundation.org, mingo@elte.hu, linux-kernel@vger.kernel.org, linux-mm@kvack.org, htd@fancy-poultry.org Subject: Re: [PATCH 3/3] net-dccp: Suppress warning about large allocations from DCCP Message-ID: <20090623023936.GA2721@ghostprotocols.net> References: <1245685414-8979-1-git-send-email-mel@csn.ul.ie> <1245685414-8979-4-git-send-email-mel@csn.ul.ie> <20090622.161502.74508182.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090622.161502.74508182.davem@davemloft.net> X-Url: http://oops.ghostprotocols.net:81/blog User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 28 Em Mon, Jun 22, 2009 at 04:15:02PM -0700, David Miller escreveu: > From: Mel Gorman > Date: Mon, 22 Jun 2009 16:43:34 +0100 > > > The DCCP protocol tries to allocate some large hash tables during > > initialisation using the largest size possible. This can be larger than > > what the page allocator can provide so it prints a warning. However, the > > caller is able to handle the situation so this patch suppresses the warning. > > > > Signed-off-by: Mel Gorman > > It's probably much more appropriate to make this stuff use > alloc_large_system_hash(), like TCP does (see net/ipv4/tcp.c > tcp_init()). > > All of this complicated DCCP hash table size computation code will > simply disappear. And it'll fix the warning too :-) He mentioned that in the conversation that lead to this new patch series, problem is that alloc_large_system_hash is __init, so when you try to load dccp.ko it will not be available. - Arnaldo -- 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/