diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-24 20:51:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-24 20:51:12 -0400 |
commit | a7351402574eec1308b099cc8e8108e715a2c8b6 (patch) | |
tree | 09e3c2a5f3522f4c4ed5d92c0a87ec1cf48ca443 /mm | |
parent | b2b755b5f10eb32fbdc73a9907c07006b17f714b (diff) | |
parent | b8c4c96ed4cdecf5ae51fc6f4c006658e873047f (diff) |
Merge branch 'slab/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'slab/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
SLUB: Write to per cpu data when allocating it
slub: Fix debugobjects with lockless fastpath
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -849,11 +849,11 @@ static inline void slab_free_hook(struct kmem_cache *s, void *x) | |||
849 | local_irq_save(flags); | 849 | local_irq_save(flags); |
850 | kmemcheck_slab_free(s, x, s->objsize); | 850 | kmemcheck_slab_free(s, x, s->objsize); |
851 | debug_check_no_locks_freed(x, s->objsize); | 851 | debug_check_no_locks_freed(x, s->objsize); |
852 | if (!(s->flags & SLAB_DEBUG_OBJECTS)) | ||
853 | debug_check_no_obj_freed(x, s->objsize); | ||
854 | local_irq_restore(flags); | 852 | local_irq_restore(flags); |
855 | } | 853 | } |
856 | #endif | 854 | #endif |
855 | if (!(s->flags & SLAB_DEBUG_OBJECTS)) | ||
856 | debug_check_no_obj_freed(x, s->objsize); | ||
857 | } | 857 | } |
858 | 858 | ||
859 | /* | 859 | /* |
@@ -1604,7 +1604,7 @@ static inline void note_cmpxchg_failure(const char *n, | |||
1604 | 1604 | ||
1605 | void init_kmem_cache_cpus(struct kmem_cache *s) | 1605 | void init_kmem_cache_cpus(struct kmem_cache *s) |
1606 | { | 1606 | { |
1607 | #if defined(CONFIG_CMPXCHG_LOCAL) && defined(CONFIG_PREEMPT) | 1607 | #ifdef CONFIG_CMPXCHG_LOCAL |
1608 | int cpu; | 1608 | int cpu; |
1609 | 1609 | ||
1610 | for_each_possible_cpu(cpu) | 1610 | for_each_possible_cpu(cpu) |