diff options
-rw-r--r-- | mm/slub.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2245,6 +2245,12 @@ redo: | |||
2245 | stat(s, ALLOC_REFILL); | 2245 | stat(s, ALLOC_REFILL); |
2246 | 2246 | ||
2247 | load_freelist: | 2247 | load_freelist: |
2248 | /* | ||
2249 | * freelist is pointing to the list of objects to be used. | ||
2250 | * page is pointing to the page from which the objects are obtained. | ||
2251 | * That page must be frozen for per cpu allocations to work. | ||
2252 | */ | ||
2253 | VM_BUG_ON(!c->page->frozen); | ||
2248 | c->freelist = get_freepointer(s, freelist); | 2254 | c->freelist = get_freepointer(s, freelist); |
2249 | c->tid = next_tid(c->tid); | 2255 | c->tid = next_tid(c->tid); |
2250 | local_irq_restore(flags); | 2256 | local_irq_restore(flags); |