powerpc/pseries: Switch to GFP_ATOMIC allocations in hotplug interrupt handler
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.
Signed-off-by Bharata B Rao <[email protected]>
--- arch/powerpc/platforms/pseries/dlpar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/pseries/dlpar.c +2 -2
@@ -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
Quoted 2 lines · Bharata B Rao
queue_hotplug_event()gets called from interrupt handler code. UseGFP_ATOMICallocations instead ofGFP_KERNEL.
https://patchwork.ozlabs.org/patch/1106626/
(That version also adds a missing check for the result of the first kmalloc.)