]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:02:29 +0000 (13:02 -0800)
commit927ce948bd25e887df456ba57e2a756e85ef73ef
treefa27d30de3eb765c823cf42725527615b17a90ab
parent812d4813672a206969b76165eb1229aafbf37e95
sch_gred: should not use GFP_KERNEL while holding a spinlock

[ Upstream commit 3f1e6d3fd37bd4f25e5b19f1c7ca21850426c33f ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/sch_gred.c