lkml.org 
[lkml]   [2006]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] [1/1] slab: fix crash on __drain_alien_cahce() during CPU Hotplug
Date
From
transfer_objects should only be called when all of the cpus in the
node are online. CPU_DEAD notifier callback marks l3->shared to NULL.

Signed-off-by: Jacob Shin <jacob.shin@amd.com>

---
mm/slab.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- linux.orig/mm/slab.c 2006-04-26 21:19:25.000000000 -0500
+++ linux/mm/slab.c 2006-04-28 09:45:53.000000000 -0500
@@ -979,7 +979,8 @@ static void __drain_alien_cache(struct k
* That way we could avoid the overhead of putting the objects
* into the free lists and getting them back later.
*/
- transfer_objects(rl3->shared, ac, ac->limit);
+ if (rl3->shared)
+ transfer_objects(rl3->shared, ac, ac->limit);

free_block(cachep, ac->entry, ac->avail, node);
ac->avail = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-28 17:57    [W:0.033 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site