Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73123
b: refs/heads/master
c: 05aa345
h: refs/heads/master
i:
  73121: cd7917f
  73119: 1b96d46
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Nov 5, 2007
1 parent e70f5cb commit 11b3422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aac9e28d2f3d3c1eacc4114d685864a2a6423b80
refs/heads/master: 05aa345034de6ae9c77fb93f6a796013641d57d5
20 changes: 1 addition & 19 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1511,26 +1511,8 @@ static void *__slab_alloc(struct kmem_cache *s,

if (new) {
c = get_cpu_slab(s, smp_processor_id());
if (c->page) {
/*
* Someone else populated the cpu_slab while we
* enabled interrupts, or we have gotten scheduled
* on another cpu. The page may not be on the
* requested node even if __GFP_THISNODE was
* specified. So we need to recheck.
*/
if (node_match(c, node)) {
/*
* Current cpuslab is acceptable and we
* want the current one since its cache hot
*/
discard_slab(s, new);
slab_lock(c->page);
goto load_freelist;
}
/* New slab does not fit our expectations */
if (c->page)
flush_slab(s, c);
}
slab_lock(new);
SetSlabFrozen(new);
c->page = new;
Expand Down

0 comments on commit 11b3422

Please sign in to comment.