Skip to contentSkip to conversation

powerpc/pseries: Switch to GFP_ATOMIC allocations in hotplug interrupt handler

PATCH In review Bharata B Rao 2 participants 2 messages Jun 12, 2019 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries: Switch to GFP_ATOMIC allocations in hotplug interrupt handler

queue_hotplug_event() gets called from interrupt handler code. Use GFP_ATOMIC allocations instead of GFP_KERNEL.

---
 arch/powerpc/platforms/pseries/dlpar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/pseries/dlpar.c +2 -2
index 17958043e7f7..79b36d91be28 100644
@@ -387,10 +387,10 @@ void queue_hotplug_event(struct pseries_hp_errorlog *hp_errlog)
 	struct pseries_hp_errorlog *hp_errlog_copy;
 
 	hp_errlog_copy = kmalloc(sizeof(struct pseries_hp_errorlog),
-				 GFP_KERNEL);
+				 GFP_ATOMIC);
 	memcpy(hp_errlog_copy, hp_errlog, sizeof(struct pseries_hp_errorlog));
 
-	work = kmalloc(sizeof(struct pseries_hp_work), GFP_KERNEL);
+	work = kmalloc(sizeof(struct pseries_hp_work), GFP_ATOMIC);
 	if (work) {
 		INIT_WORK((struct work_struct *)work, pseries_hp_work_fn);
 		work->errlog = hp_errlog_copy;
Signature · 1 line
2.17.1