From: Eric Dumazet Date: Sat, 4 Oct 2014 17:11:31 +0000 (-0700) Subject: net: sched: avoid costly atomic operation in fq_dequeue() X-Git-Tag: fixes-against-v3.18-rc2~144^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2600cf02b5b59aaee082c3485b7f01fc7f7b70c;p=pandora-kernel.git net: sched: avoid costly atomic operation in fq_dequeue() Standard qdisc API to setup a timer implies an atomic operation on every packet dequeue : qdisc_unthrottled() It turns out this is not really needed for FQ, as FQ has no concept of global qdisc throttling, being a qdisc handling many different flows, some of them can be throttled, while others are not. Fix is straightforward : add a 'bool throttle' to qdisc_watchdog_schedule_ns(), and remove calls to qdisc_unthrottled() in sch_fq. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed