Thread (53 messages) 53 messages, 4 authors, 2021-06-09

Re: [RFC 10/26] mm, slub: do initial checks in ___slab_alloc() with irqs enabled

From: Mel Gorman <hidden>
Date: 2021-05-25 13:04:41
Also in: lkml

On Tue, May 25, 2021 at 01:39:30AM +0200, Vlastimil Babka wrote:
As another step of shortening irq disabled sections in ___slab_alloc(), don't
disable irqs until doing initial checks if there is a cached percpu slab and
it's suitable for our allocation.

Now we have to recheck c->page after actually disabling irqs as an allocation
in irq might have replaced it.

Signed-off-by: Vlastimil Babka <redacted>
Minor nit only -- consider adding a comment at the new_slab label that
IRQs must be disabled already.

Acked-by: Mel Gorman <redacted>

-- 
Mel Gorman
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help