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
History
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
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.6 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 201.9 KB
Makefile -rw-r--r-- 52.2 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top