From: Christoph Lameter <christoph@lameter.com>
To: Anton Blanchard <anton@samba.org>
Cc: akpm@osdl.org, manfred@colorfullife.com, linux-kernel@vger.kernel.org
Subject: Re: slab not freeing with current -git
Date: Tue, 5 Jul 2005 17:05:02 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.62.0507051700360.5130@graphe.net> (raw)
In-Reply-To: <20050705235521.GN12786@krispykreme>
On Wed, 6 Jul 2005, Anton Blanchard wrote:
> Its using the default. Looking at include/asm-generic/topology.h:
>
> #ifndef pcibus_to_node
> #define pcibus_to_node(node) (-1)
> #endif
>
> I wonder what kmalloc_node does when you pass it -1.
That is the issue. It should fall back to kmalloc. One piece of the
patchset dropped out between Andrew and Linus.
Index: linux-2.6.git/mm/slab.c
===================================================================
--- linux-2.6.git.orig/mm/slab.c 2005-07-05 17:03:30.000000000 -0700
+++ linux-2.6.git/mm/slab.c 2005-07-05 17:04:09.000000000 -0700
@@ -2443,6 +2443,9 @@
{
kmem_cache_t *cachep;
+ if (node == -1)
+ return kmalloc(size, flags);
+
cachep = kmem_find_general_cachep(size, flags);
if (unlikely(cachep == NULL))
return NULL;
next prev parent reply other threads:[~2005-07-06 0:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-05 22:45 Anton Blanchard
2005-07-05 22:51 ` Christoph Lameter
2005-07-05 22:59 ` Anton Blanchard
2005-07-05 23:33 ` Christoph Lameter
2005-07-05 23:55 ` Anton Blanchard
2005-07-06 0:05 ` Christoph Lameter [this message]
2005-07-06 1:04 ` Anton Blanchard
2005-07-06 1:27 ` Christoph Lameter
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=Pine.LNX.4.62.0507051700360.5130@graphe.net \
--to=christoph@lameter.com \
--cc=akpm@osdl.org \
--cc=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.com \
/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
all inboxes | Powered by JetHome®