| To: | davem@xxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 4/8] Use SLAB_PANIC when creating critical slab cache |
| From: | Chris Wright <chrisw@xxxxxxxx> |
| Date: | Sun, 14 Nov 2004 12:22:38 -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/ipv4/inetpeer.c 1.9 vs edited =====
--- 1.9/net/ipv4/inetpeer.c 2004-02-23 15:09:14 -08:00
+++ edited/net/ipv4/inetpeer.c 2004-10-29 14:17:33 -07:00
@@ -126,11 +126,8 @@ void __init inet_initpeers(void)
peer_cachep = kmem_cache_create("inet_peer_cache",
sizeof(struct inet_peer),
- 0, SLAB_HWCACHE_ALIGN,
+ 0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
NULL, NULL);
-
- if (!peer_cachep)
- panic("cannot create inet_peer_cache");
/* All the timers, started at system startup tend
to synchronize. Perturb it a bit.
|
| Previous by Date: | [PATCH 3/8] Use SLAB_PANIC when creating critical slab cache, Chris Wright |
|---|---|
| Next by Date: | [PATCH 5/8] Use SLAB_PANIC when creating critical slab cache, Chris Wright |
| Previous by Thread: | [PATCH 3/8] Use SLAB_PANIC when creating critical slab cache, Chris Wright |
| Next by Thread: | [PATCH 5/8] Use SLAB_PANIC when creating critical slab cache, Chris Wright |
| Indexes: | [Date] [Thread] [Top] [All Lists] |