Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24.4-rc2 /mm/slab.c

Filename:/mm/slab.c
Lines Added:2
Lines Deleted:3
Also changed in: (Previous) 2.6.24.2  2.6.24-git22  2.6.24-git21  2.6.24-git20  2.6.24.1  2.6.24-git19 
(Following) 2.6.24.4-rc3  2.6.24.4  2.6.24.5-rc1  2.6.24.5-rc2  2.6.24.5  2.6.24.6 

Location
[  2.6.24.4-rc2
  [  mm
     o  slab.c

Patch

diff --git a/mm/slab.c b/mm/slab.c
index ff31261..79c3be0 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2961,11 +2961,10 @@ static void *cache_alloc_refill(struct kmem_cache *cachep, gfp_t flags)
    struct array_cache *ac;
    int node;
 
-   node = numa_node_id();
-
+retry:
    check_irq_off();
+   node = numa_node_id();
    ac = cpu_cache_get(cachep);
-retry:
    batchcount = ac->batchcount;
    if (!ac->touched && batchcount > BATCHREFILL_LIMIT) {
       /*


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.