Re: Bootup warning messages if SLAB_DEBUG_SUPPORT=0 in 2.2.10-ac11.

Niels Kristian Bech Jensen (nkbj@image.dk)
Mon, 19 Jul 1999 17:18:23 +0200 (CEST)


On Mon, 19 Jul 1999, Stephen C. Tweedie wrote:

> On Mon, 19 Jul 1999 09:09:12 +0200 (CEST), Niels Kristian Bech Jensen
> <nkbj@image.dk> said:
>
> > I get these messages in /var/log/messages when I boot a 2.2.10-ac11 kernel
> > with SLAB_DEBUG_SUPPORT set to 0 in mm/slab.c:
>
> > kmem_create: Illgl flg 2800 - size-32
>
> That's right. You need to remove the SLAB_POISON flag in
> kmem_cache_sizes_init, since you have just disabled support for that
> flag. It's at line 473 in mm/slab.c.
>
Something like this?

--- linux-2.2.10-ac11/mm/slab.c Mon Jul 19 06:29:28 1999
+++ linux/mm/slab.c Mon Jul 19 17:14:02 1999
@@ -471,7 +471,11 @@
* allow tighter packing of the smaller caches. */
if (!(sizes->cs_cachep =
kmem_cache_create(*names++, sizes->cs_size,
- 0, SLAB_HWCACHE_ALIGN|SLAB_POISON, NULL, NULL)))
+ 0, SLAB_HWCACHE_ALIGN
+#if SLAB_DEBUG_SUPPORT
+ |SLAB_POISON
+#endif /* SLAB_DEBUG_SUPPORT */
+ , NULL, NULL)))
goto panic_time;
if (!found) {
/* Inc off-slab bufctl limit until the ceiling is hit. */

-- 
Niels Kristian Bech Jensen -- nkbj@image.dk -- http://www.image.dk/~nkbj/

----------->> Stop software piracy --- use free software! <<-----------

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/