From: Eric Dumazet Date: Fri, 23 Dec 2011 19:28:51 +0000 (+0000) Subject: netem: dont call vfree() under spinlock and BH disabled X-Git-Tag: v3.2~24^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb52c7acf871537a468433775151339f783d2e8c;p=pandora-kernel.git netem: dont call vfree() under spinlock and BH disabled commit 6373a9a286 (netem: use vmalloc for distribution table) added a regression, since vfree() is called while holding a spinlock and BH being disabled. Fix this by doing the pointers swap in critical section, and freeing after spinlock release. Also add __GFP_NOWARN to the kmalloc() try, since we fallback to vmalloc(). Signed-off-by: Eric Dumazet Acked-by: Stephen Hemminger Signed-off-by: David S. Miller --- Reading git-diff-tree failed