netdev
[Top] [All Lists]

[PATCH 8/8] Use SLAB_PANIC when creating critical slab cache

To: davem@xxxxxxxxxxxxx
Subject: [PATCH 8/8] Use SLAB_PANIC when creating critical slab cache
From: Chris Wright <chrisw@xxxxxxxx>
Date: Sun, 14 Nov 2004 12:25:21 -0800
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20041114121837.X2357@xxxxxxxxxxxxxxxxxx>; from chrisw@xxxxxxxx on Sun, Nov 14, 2004 at 12:18:37PM -0800
References: <20041114121837.X2357@xxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
Use SLAB_PANIC when creating a critical slab cache.

Signed-off-by: Chris Wright <chrisw@xxxxxxxx>

===== net/xfrm/xfrm_input.c 1.13 vs edited =====
--- 1.13/net/xfrm/xfrm_input.c  2003-07-27 19:22:27 -07:00
+++ edited/net/xfrm/xfrm_input.c        2004-10-29 14:57:20 -07:00
@@ -78,8 +78,6 @@ void __init xfrm_input_init(void)
 {
        secpath_cachep = kmem_cache_create("secpath_cache",
                                           sizeof(struct sec_path),
-                                          0, SLAB_HWCACHE_ALIGN,
+                                          0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
                                           NULL, NULL);
-       if (!secpath_cachep)
-               panic("XFRM: failed to allocate secpath_cache\n");
 }

<Prev in Thread] Current Thread [Next in Thread>