Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752467AbYJVF2b (ORCPT ); Wed, 22 Oct 2008 01:28:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751424AbYJVF2T (ORCPT ); Wed, 22 Oct 2008 01:28:19 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:46600 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751044AbYJVF2S (ORCPT ); Wed, 22 Oct 2008 01:28:18 -0400 Message-ID: <48FEBAAA.5080604@suse.de> Date: Wed, 22 Oct 2008 11:01:22 +0530 From: Suresh Jayaraman User-Agent: Thunderbird 2.0.0.17 (X11/20080922) MIME-Version: 1.0 To: Peter Zijlstra CC: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, trond.myklebust@fys.uio.no, Daniel Lezcano , Pekka Enberg , Neil Brown , David Miller Subject: Re: [PATCH 20/32] netvm: INET reserves. References: <20081002130504.927878499@chello.nl> <20081002131609.071928149@chello.nl> In-Reply-To: <20081002131609.071928149@chello.nl> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1614 Lines: 59 Hi Peter, >>> Peter Zijlstra 10/02/08 7:06 PM >>> > Add reserves for INET. There's a typo in this patch that results in a Oops like the one below when doing `sysctl -a' RIP: 0010:[] [] __mutex_lock_slowpath+0x34/0xc9 Call Trace: [] mutex_lock+0x1a/0x1e [] proc_dointvec_route+0x38/0xad [] proc_sys_call_handler+0x91/0xb8 [] vfs_read+0xaa/0x153 [] sys_read+0x45/0x6e [] system_call_fastpath+0x16/0x1b [<00007fb25e415880>] 0x7fb25e415880 Index: linux-2.6/net/ipv4/route.c =================================================================== --- linux-2.6.orig/net/ipv4/route.c +++ linux-2.6/net/ipv4/route.c /* Deprecated. Use gc_min_interval_ms */ @@ -3271,6 +3330,15 @@ int __init ip_rt_init(void) ipv4_dst_ops.gc_thresh = (rt_hash_mask + 1); ip_rt_max_size = (rt_hash_mask + 1) * 16; +#ifdef CONFIG_PROCFS Should be CONFIG_PROC_FS + mutex_init(&ipv4_route_lock); +#endif + + mem_reserve_init(&ipv4_route_reserve, "IPv4 route cache", + &net_rx_reserve); + mem_reserve_kmem_cache_set(&ipv4_route_reserve, + ipv4_dst_ops.kmem_cachep, ip_rt_max_size); + devinet_init(); ip_fib_init(); Thanks, -- Suresh Jayaraman -- 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/