Whamcloud - gitweb
LU-3536 osd: allocate it for each iteration.
[fs/lustre-release.git] / lustre / osd-zfs / osd_handler.c
index 62965a7..2ea2f1f 100644 (file)
@@ -74,6 +74,9 @@ struct lu_context_key osd_key;
 /* Slab for OSD object allocation */
 struct kmem_cache *osd_object_kmem;
 
+/* Slab to allocate osd_zap_it */
+struct kmem_cache *osd_zapit_cachep;
+
 static struct lu_kmem_descr osd_caches[] = {
        {
                .ckd_cache = &osd_object_kmem,
@@ -81,6 +84,11 @@ static struct lu_kmem_descr osd_caches[] = {
                .ckd_size  = sizeof(struct osd_object)
        },
        {
+               .ckd_cache = &osd_zapit_cachep,
+               .ckd_name  = "osd_zapit_cache",
+               .ckd_size  = sizeof(struct osd_zap_it)
+       },
+       {
                .ckd_cache = NULL
        }
 };