]> git.baikalelectronics.ru Git - kernel.git/commit
sch_gred: prefer GFP_KERNEL allocations
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 15 Dec 2011 22:09:45 +0000 (22:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Dec 2011 20:40:33 +0000 (15:40 -0500)
commita31a8fba50689a627787cd4bbf816a1b3ffc34ae
tree740c289a40c1ffc9ec23d9369cdb9389b1edb8ca
parentb260919b9f57b90c20ad2bb10ee64e86efa11c19
sch_gred: prefer GFP_KERNEL allocations

In control path, its better to use GFP_KERNEL allocations where
possible.

Before taking qdisc spinlock, we preallocate memory just in case we'll
need it in gred_change_vq()

This is a followup to commit 8a54d79492a4 (sch_gred: should not use
GFP_KERNEL while holding a spinlock)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_gred.c