lkml.org 
[lkml]   [2019]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 2/2] mm: avoid slub allocation while holding list_lock
On Sat, 9 Nov 2019, Yu Zhao wrote:

> > struct page *page, *h;
> > + unsigned long *map = bitmap_alloc(oo_objects(s->max), GFP_KERNEL);
> > +
> > + if (!map)
> > + return;
>
> What would happen if we are trying to allocate from the slab that is
> being shut down? And shouldn't the allocation be conditional (i.e.,
> only when CONFIG_SLUB_DEBUG=y)?

Kmalloc slabs are never shut down.

The allocation does not hurt and CONFIG_SLUB_DEBUG is on in most
configurations.


\
 
 \ /
  Last update: 2019-11-10 00:17    [W:0.069 / U:1.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site