]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - mm/slab_common.c
UBUNTU: [Debian] make rebuild use skippable error codes when skipping.
[mirror_ubuntu-bionic-kernel.git] / mm / slab_common.c
index c8cb36774ba1802c925c0b65609a15d7241d5aee..282b2f1ca83ded13b5c19e7a0508759055ea125b 100644 (file)
@@ -546,10 +546,14 @@ static int shutdown_cache(struct kmem_cache *s)
        list_del(&s->list);
 
        if (s->flags & SLAB_TYPESAFE_BY_RCU) {
+#ifdef SLAB_SUPPORTS_SYSFS
+               sysfs_slab_unlink(s);
+#endif
                list_add_tail(&s->list, &slab_caches_to_rcu_destroy);
                schedule_work(&slab_caches_to_rcu_destroy_work);
        } else {
 #ifdef SLAB_SUPPORTS_SYSFS
+               sysfs_slab_unlink(s);
                sysfs_slab_release(s);
 #else
                slab_kmem_cache_release(s);