Skip to contentSkip to conversation

tiny kmem_cache_destroy doc tweak

PATCH New John Levon 1 participant 1 message Sep 18, 2002 Memory management

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 tiny kmem_cache_destroy doc tweak

Make it clear that _destroy() won't do the kmem_cache_free()s for you (it seems).

Against 2.5.36

thanks
john

mm/slab.c +2 -0
@@ -1018,6 +1018,8 @@
  * cache being allocated each time a module is loaded and unloaded, if the
  * module doesn't have persistent in-kernel storage across loads and unloads.
  *
+ * The cache must be empty before calling this function.
+ *
  * The caller must guarantee that noone will allocate memory from the cache
  * during the kmem_cache_destroy().
  */