diff options
author | Patrick McHardy <kaber@trash.net> | 2005-01-09 21:54:22 -0800 |
---|---|---|
committer | David S. Miller <davem@nuts.davemloft.net> | 2005-01-09 21:54:22 -0800 |
commit | 55a97ece596da37d7b9fb42a18d1b37ecd6b18f2 (patch) | |
tree | 44d84cc08911ddf06f9af3e847e5148352b4f9f6 /net | |
parent | ed340102a9f16b262360bbe81aba40c54501988e (diff) | |
download | history-55a97ece596da37d7b9fb42a18d1b37ecd6b18f2.tar.gz |
[PKT_SCHED]: tc actions: remove unnecessary locking for refcnt changes
refcnt/bindcnt are only used in user context under the rtnl, no additional
locking is necessary. Besides it was only done in some places, so kill it.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/police.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sched/police.c b/net/sched/police.c index e52e48333cc378..7efd037f49023d 100644 --- a/net/sched/police.c +++ b/net/sched/police.c @@ -189,12 +189,10 @@ static int tcf_act_police_locate(struct rtattr *rta, struct rtattr *est, if (parm->index && (p = tcf_police_lookup(parm->index)) != NULL) { a->priv = p; - spin_lock(&p->lock); if (bind) { p->bindcnt += 1; p->refcnt += 1; } - spin_unlock(&p->lock); if (ovr) goto override; return ret; |