]> git.baikalelectronics.ru Git - kernel.git/commit
sch_gred: should not use GFP_KERNEL while holding a spinlock
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 11 Dec 2011 23:42:53 +0000 (23:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Dec 2011 00:08:54 +0000 (19:08 -0500)
commit8a54d79492a4646434145b674047a8c73c7c0454
tree4a4c3e784973d34e3689e3fc6789ae3503db576c
parentf2a0d382e1d47c6b2325812309bf64a1b2b2fc84
sch_gred: should not use GFP_KERNEL while holding a spinlock

gred_change_vq() is called under sch_tree_lock(sch).

This means a spinlock is held, and we are not allowed to sleep in this
context.

We might pre-allocate memory using GFP_KERNEL before taking spinlock,
but this is not suitable for stable material.

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