From: Manfred Spraul <manfred@colorfullife.com>
To: Andries.Brouwer@cwi.nl
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
Linus Torvalds <torvalds@osdl.org>
Subject: Re: [PATCH] __init in mm/slab.c
Date: Sun, 14 Nov 2004 09:18:00 +0100 [thread overview]
Message-ID: <419714B8.3030804@colorfullife.com> (raw)
In-Reply-To: <E1CTDXF-0006mU-00@bkwatch.colorfullife.com>
From the bk commit log:
>ChangeSet 1.2132, 2004/11/13 20:59:55-08:00, Andries.Brouwer@cwi.nl
>
> [PATCH] __init in mm/slab.c
>
> The below removes an __initdata
> (for initarray_generic that is referenced in non-init code).
>
>
I think the patch is wrong and should be reverted: initarray_generic is
referenced, but never used:
> if (g_cpucache_up == NONE) {
> /* Note: the first kmem_cache_create must create
> * the cache that's used by kmalloc(24), otherwise
> * the creation of further caches will BUG().
> */
> cachep->array[smp_processor_id()] = &initarray_generic.cache;
> g_cpucache_up = PARTIAL;
> } else {
> cachep->array[smp_processor_id()] = kmalloc(sizeof(struct
> arraycache_init),GFP_KERNEL);
> }
g_cpucache_up is NONE during bootstrap and FULL after boot. Thus the
initarray is never accessed after boot.
Andries, why did you propose this change? Does the current code trigger
an automatic test?
--
Manfred
next parent reply other threads:[~2004-11-14 8:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1CTDXF-0006mU-00@bkwatch.colorfullife.com>
2004-11-14 8:18 ` Manfred Spraul [this message]
2004-11-14 11:15 ` [PATCH] __init in mm/slab.c Andries Brouwer
2004-11-15 2:26 ` Linus Torvalds
2004-11-14 18:58 ` Manfred Spraul
2004-11-14 1:27 Andries Brouwer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=419714B8.3030804@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=Andries.Brouwer@cwi.nl \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox