Skip to contentSkip to conversation

2.6.17-rt1: Patch for NUMA mm/slab.c

PATCH Robert Crocombe 2 participants 2 messages Jun 25, 2006 – Jun 27, 2006 Memory management

lore
Share & tools
lore
#0 lore raw

Needed to add this_cpu in a couple of places. Compiled and no problems so far...

Hopefully not mangled by mailer.

Signature · 2 lines
Robert Crocombe
[email protected]
mm/slab.c +4 -2
@@ -3243,14 +3243,16 @@
 				if (unlikely(alien->avail == alien->limit)) {
 					STATS_INC_ACOVERFLOW(cachep);
 					__drain_alien_cache(cachep,
-							    alien, nodeid);
+							    alien, nodeid,
+                                                            this_cpu);
 				}
 				alien->entry[alien->avail++] = objp;
 				spin_unlock(&alien->lock);
 			} else {
 				spin_lock(&(cachep->nodelists[nodeid])->
 					  list_lock);
-				free_block(cachep, &objp, 1, nodeid);
+				free_block(cachep, &objp, 1, nodeid,
+                                                this_cpu);
 				spin_unlock(&(cachep->nodelists[nodeid])->
 					    list_lock);
 			}
#1 lore raw
Quoted 2 lines · Robert Crocombe

Needed to add this_cpu in a couple of places. Compiled and no problems so far...

thanks. I ended up applying Paul E. McKenney's patch which he sent shortly before you.

Ingo