Re: [PATCH] QE: Use GFP_ATOMIC while spin_lock_irqsave is held

2016-01-25 Thread Scott Wood
On Sun, 2016-01-24 at 12:24 +0530, Saurabh Sengar wrote: > cpm_muram_alloc_common is called twice and both the times > spin_lock_irqsave is held. > Using GFP_KERNEL can sleep in spin_lock_irqsave context and cause > deadlock > > Signed-off-by: Saurabh Sengar > --- > Let me know if there is any ot

[PATCH] QE: Use GFP_ATOMIC while spin_lock_irqsave is held

2016-01-24 Thread Saurabh Sengar
cpm_muram_alloc_common is called twice and both the times spin_lock_irqsave is held. Using GFP_KERNEL can sleep in spin_lock_irqsave context and cause deadlock Signed-off-by: Saurabh Sengar --- Let me know if there is any other way to fix it. Also, I would say this function should be static as it