commit | 869aa41044b04964e27822124b88f799e46f01b9 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <eric.dumazet@gmail.com> | Thu Dec 15 22:09:45 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Dec 16 15:40:33 2011 -0500 |
tree | 740c289a40c1ffc9ec23d9369cdb9389b1edb8ca | |
parent | c607b2ed84929e143d9fb5653c4b5d0109147cde [diff] |
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 3f1e6d3fd37b (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>