diff options
-rw-r--r-- | mm/slub.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1591,6 +1591,7 @@ static __always_inline void *slab_alloc(struct kmem_cache *s, | |||
1591 | unsigned long flags; | 1591 | unsigned long flags; |
1592 | unsigned int objsize; | 1592 | unsigned int objsize; |
1593 | 1593 | ||
1594 | might_sleep_if(gfpflags & __GFP_WAIT); | ||
1594 | local_irq_save(flags); | 1595 | local_irq_save(flags); |
1595 | c = get_cpu_slab(s, smp_processor_id()); | 1596 | c = get_cpu_slab(s, smp_processor_id()); |
1596 | objsize = c->objsize; | 1597 | objsize = c->objsize; |