Эх сурвалжийг харах

slub: Add missing irq restore for the OOM path

OOM path is missing the irq restore in the CONFIG_CMPXCHG_LOCAL case.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Christoph Lameter 14 жил өмнө
parent
commit
2fd66c517d
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      mm/slub.c

+ 3 - 0
mm/slub.c

@@ -1857,6 +1857,9 @@ new_slab:
 	}
 	}
 	if (!(gfpflags & __GFP_NOWARN) && printk_ratelimit())
 	if (!(gfpflags & __GFP_NOWARN) && printk_ratelimit())
 		slab_out_of_memory(s, gfpflags, node);
 		slab_out_of_memory(s, gfpflags, node);
+#ifdef CONFIG_CMPXCHG_LOCAL
+	local_irq_restore(flags);
+#endif
 	return NULL;
 	return NULL;
 debug:
 debug:
 	if (!alloc_debug_processing(s, c->page, object, addr))
 	if (!alloc_debug_processing(s, c->page, object, addr))