Thread (3 messages) 3 messages, 2 authors, 2012-10-03

Re: CK2 [03/15] slub: Use a statically allocated kmem_cache boot structure for bootstrap

From: JoonSoo Kim <hidden>
Date: 2012-10-02 14:47:37

Hi, Christoph.

2012/9/29 Christoph Lameter [off-list ref]:
quoted hunk ↗ jump to hunk
@@ -3930,6 +3905,10 @@ int __kmem_cache_create(struct kmem_cach
        if (err)
                return err;

+       /* Mutex is not taken during early boot */
+       if (slab_state <= UP)
+               return 0;
+
        mutex_unlock(&slab_mutex);
        err = sysfs_slab_add(s);
        mutex_lock(&slab_mutex);
This addition should go to previous patch "create common functions for
boot slab creation".
In there, create_boot_cache() call __kmem_cache_create(), and then
mutex_unlock() is called without taking mutext.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help