The patch titled

     Fix broken kmalloc_node in rc1/rc2

has been added to the -mm tree.  Its filename is

     fix-broken-kmalloc_node-in-rc1-rc2.patch

Patches currently in -mm which might be from [EMAIL PROTECTED] are

fix-broken-kmalloc_node-in-rc1-rc2.patch
e1000-numa-aware-allocation-of-descriptors-v2.patch
mostly_read-data-section.patch



From: Christoph Lameter <[EMAIL PROTECTED]>

pcibus_to_node may be used to generate the node information passed to 
kmalloc_node. pcibus_to_node returns -1 if it was not able to determine
on which node a pcibus is located. For that case kmalloc_node must
work like kmalloc.

Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 mm/slab.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN mm/slab.c~fix-broken-kmalloc_node-in-rc1-rc2 mm/slab.c
--- 25/mm/slab.c~fix-broken-kmalloc_node-in-rc1-rc2     Wed Jul  6 13:48:30 2005
+++ 25-akpm/mm/slab.c   Wed Jul  6 13:48:30 2005
@@ -2374,6 +2374,9 @@ void *kmem_cache_alloc_node(kmem_cache_t
        struct slab *slabp;
        kmem_bufctl_t next;
 
+       if (nodeid == -1)
+               return kmem_cache_alloc(cachep, flags);
+
        for (loop = 0;;loop++) {
                struct list_head *q;
 
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to