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

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

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

Use SLAB_PANIC when creating a critical slab cache.

Signed-off-by: Chris Wright <redacted>

===== net/core/flow.c 1.20 vs edited =====
--- 1.20/net/core/flow.c	2004-03-16 18:10:10 -08:00
+++ edited/net/core/flow.c	2004-10-29 14:22:54 -07:00
@@ -343,11 +343,8 @@ static int __init flow_cache_init(void)
 
 	flow_cachep = kmem_cache_create("flow_cache",
 					sizeof(struct flow_cache_entry),
-					0, SLAB_HWCACHE_ALIGN,
+					0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
 					NULL, NULL);
-
-	if (!flow_cachep)
-		panic("NET: failed to allocate flow cache slab\n");
 
 	flow_hash_shift = 10;
 	flow_lwm = 2 * flow_hash_size;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help