Re: Common10 [13/20] Move kmem_cache allocations into common code.

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

 



On Sun, 5 Aug 2012, JoonSoo Kim wrote:

> > Index: linux-2.6/mm/slab_common.c
> > ===================================================================
> > --- linux-2.6.orig/mm/slab_common.c     2012-08-03 13:17:27.000000000 -0500
> > +++ linux-2.6/mm/slab_common.c  2012-08-03 13:20:48.080876182 -0500
> > @@ -104,19 +104,21 @@ struct kmem_cache *kmem_cache_create(con
> >                 goto out_locked;
> >         }
> >
> > -       s = __kmem_cache_create(n, size, align, flags, ctor);
> > -
> > +       s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT);
> >         if (s) {
>
> Is it necessary that kmem_cache_zalloc() is invoked with GFP_NOWAIT?
> As I understand, before patch, it is called with GFP_KERNEL.

Correct. GFP_NOWAIT would be used in a boot situation. Was doing this
while also working on bootstrap issues. Fixed in next release.

--
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]