[PATCH SLUB 1/2] duplicate the cache name in saved_alias list

2012-06-25 Thread Li Zhong
SLUB duplicates the cache name in kmem_cache_create(). However if the cache could be merged to others during early booting, the name pointer is saved in saved_alias list, and the string needs to be kept valid before slab_sysfs_init() is called. This patch tries to duplicate the cache name in save

Re: [PATCH SLUB 1/2] duplicate the cache name in saved_alias list

2012-06-25 Thread Wanlong Gao
On 06/25/2012 05:53 PM, Li Zhong wrote: > SLUB duplicates the cache name in kmem_cache_create(). However if the > cache could be merged to others during early booting, the name pointer > is saved in saved_alias list, and the string needs to be kept valid > before slab_sysfs_init() is called. > >

Re: [PATCH SLUB 1/2] duplicate the cache name in saved_alias list

2012-06-25 Thread Glauber Costa
On 06/25/2012 01:53 PM, Li Zhong wrote: SLUB duplicates the cache name in kmem_cache_create(). However if the cache could be merged to others during early booting, the name pointer is saved in saved_alias list, and the string needs to be kept valid before slab_sysfs_init() is called. This patch

Re: [PATCH SLUB 1/2] duplicate the cache name in saved_alias list

2012-06-25 Thread Li Zhong
On Mon, 2012-06-25 at 18:54 +0800, Wanlong Gao wrote: > On 06/25/2012 05:53 PM, Li Zhong wrote: > > SLUB duplicates the cache name in kmem_cache_create(). However if the > > cache could be merged to others during early booting, the name pointer > > is saved in saved_alias list, and the string needs

Re: [PATCH SLUB 1/2] duplicate the cache name in saved_alias list

2012-06-25 Thread Li Zhong
On Mon, 2012-06-25 at 15:10 +0400, Glauber Costa wrote: > On 06/25/2012 01:53 PM, Li Zhong wrote: > > SLUB duplicates the cache name in kmem_cache_create(). However if the > > cache could be merged to others during early booting, the name pointer > > is saved in saved_alias list, and the string nee