https://github.com/torvalds/linux
Revision 3f1e6d3fd37bd4f25e5b19f1c7ca21850426c33f authored by Eric Dumazet on 11 December 2011, 23:42:53 UTC, committed by David S. Miller on 13 December 2011, 00:08:54 UTC
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>
1 parent 72b3601
Raw File
Tip revision: 3f1e6d3fd37bd4f25e5b19f1c7ca21850426c33f authored by Eric Dumazet on 11 December 2011, 23:42:53 UTC
sch_gred: should not use GFP_KERNEL while holding a spinlock
Tip revision: 3f1e6d3
Kconfig
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#
mainmenu "Linux/$ARCH $KERNELVERSION Kernel Configuration"

config SRCARCH
	string
	option env="SRCARCH"

source "arch/$SRCARCH/Kconfig"
back to top