Thread (1 message) 1 message, 1 author, 2004-11-14
DORMANTno replies

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

From: Chris Wright <hidden>
Date: 2004-11-14 20:25:21

Use SLAB_PANIC when creating a critical slab cache.

Signed-off-by: Chris Wright <redacted>

===== 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");
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help