Re: Kmalloc while holding a spinlock

2009-09-29 Thread Leonidas .
On Tue, Sep 29, 2009 at 1:06 PM, askb wrote: > > I need to do lot of small allocations (around 70-80 bytes) from a > > critical region > > while holding a spinlock. Total number of such allocation could go > > upto tens of > > thousands in few hours. So all these allocations use GFP_ATOMIC flag >

Re: Kmalloc while holding a spinlock

2009-09-29 Thread askb
> I need to do lot of small allocations (around 70-80 bytes) from a > critical region > while holding a spinlock. Total number of such allocation could go > upto tens of > thousands in few hours. So all these allocations use GFP_ATOMIC flag > instead of > GFP_KERNEL. As per my understanding, GFP_A

Kmalloc while holding a spinlock

2009-09-28 Thread Leonidas .
Hi List, I need to do lot of small allocations (around 70-80 bytes) from a critical region while holding a spinlock. Total number of such allocation could go upto tens of thousands in few hours. So all these allocations use GFP_ATOMIC flag instead of GFP_KERNEL. As per my understanding, GFP_ATOMIC