]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/slab_common.c
NFS: Switch readdir to using iterate_shared()
[linux.git] / mm / slab_common.c
index f0ab6d4ceb4c947207c0f567a6f31e564fa59b29..0d95ddea13b0d835007025e5fc2f487f3c85a76a 100644 (file)
@@ -903,7 +903,8 @@ static void flush_memcg_workqueue(struct kmem_cache *s)
         * deactivates the memcg kmem_caches through workqueue. Make sure all
         * previous workitems on workqueue are processed.
         */
-       flush_workqueue(memcg_kmem_cache_wq);
+       if (likely(memcg_kmem_cache_wq))
+               flush_workqueue(memcg_kmem_cache_wq);
 
        /*
         * If we're racing with children kmem_cache deactivation, it might