diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-07-06 10:51:54 +0300 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-07-06 10:51:54 +0300 |
commit | 67fc25ef34a27dc43ce6dfc98a8b249db304d641 (patch) | |
tree | cd1b88e99c315526379cf918e56aceb266143192 /mm/slob.c | |
parent | 8e4a718ff38d8539938ec3421935904c27e00c39 (diff) | |
parent | ec5a36f94e7ca4b1f28ae4dd135cd415a704e772 (diff) | |
download | linux-67fc25ef34a27dc43ce6dfc98a8b249db304d641.tar.bz2 |
Merge branch 'slab/urgent' into for-linus
Diffstat (limited to 'mm/slob.c')
-rw-r--r-- | mm/slob.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/slob.c b/mm/slob.c index c78742defdc6..9641da3d5e58 100644 --- 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); |