git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kmemleak: Remove the reported leaks number limitation
[safe/jmp/linux-2.6]
/
mm
/
slob.c
diff --git
a/mm/slob.c
b/mm/slob.c
index
c78742d
..
9641da3
100644
(file)
--- a/
mm/slob.c
+++ b/
mm/slob.c
@@
-595,6
+595,8
@@
EXPORT_SYMBOL(kmem_cache_create);
void kmem_cache_destroy(struct kmem_cache *c)
{
kmemleak_free(c);
+ if (c->flags & SLAB_DESTROY_BY_RCU)
+ rcu_barrier();
slob_free(c, sizeof(struct kmem_cache));
}
EXPORT_SYMBOL(kmem_cache_destroy);