ATM - remove unnecessary GFP_ATOMIC allocation
Subsystems (3)
Quoted 3 lines · In message <[email protected]>,John Levon writes:
There's no reason to allocate with
GFP_ATOMICin__alloc_atm_dev(). It has one callsite that is not under a spin lock (quick audit of drivers callingatm_dev_register()too).
it used to be under a spinlock (the infamous atm global spinlock). that's no longer the case so it doesnt need to be ATOMIC anymore. i probably missed it when i fixed the spinlock.
dave, please apply to 2.6 (and 2.4) --thanks
[ATM]: remove unnecessary GFP_ATOMIC allocation (from [email protected])
net/atm/resources.c +1 -1
@@ -30,7 +30,7 @@ {struct atm_dev *dev; - dev =kmalloc (sizeof (*dev),GFP_ATOMIC ); + dev =kmalloc (sizeof (*dev),GFP_KERNEL );if (!dev)return NULL ;memset (dev,0 ,sizeof (*dev));
David S. Miller
AppliedQuoted 3 lines · On Fri, 05 Sep 2003 08:52:22 -0400 chas williams <[email protected]> wrote:
dave, please apply to 2.6 (and 2.4) --thanks
[ATM]: remove unnecessary
GFP_ATOMICallocation (from [email protected])
Applied, thanks.