]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pkt_sched: gen_estimator: add a new lock
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 8 Jun 2010 23:39:10 +0000 (23:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2010 05:53:52 +0000 (22:53 -0700)
commitae638c47dc040b8def16d05dc6acdd527628f231
treef3fa7015b8f4ed85d44d675d4a9f5f6c82063764
parent597a264b1a9c7e36d1728f677c66c5c1f7e3b837
pkt_sched: gen_estimator: add a new lock

gen_kill_estimator() / gen_new_estimator() is not always called with
RTNL held.

net/netfilter/xt_RATEEST.c is one user of these API that do not hold
RTNL, so random corruptions can occur between "tc" and "iptables".

Add a new fine grained lock instead of trying to use RTNL in netfilter.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/gen_estimator.c