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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Christoph.

2012/9/29 Christoph Lameter <cl@xxxxxxxxx>:
> @@ -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@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]