Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202610
b: refs/heads/master
c: aac4ddd
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 1, 2010
1 parent 648e840 commit a4dbf43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95e3bb7aff59d3b6c73d55d1a386ee53b8363fb5
refs/heads/master: aac4dddc358acfd9d98b20024a42c34dfab31c39
8 changes: 2 additions & 6 deletions trunk/net/ipv6/sit.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ static struct ip_tunnel * ipip6_tunnel_locate(struct net *net,
return NULL;
}

static DEFINE_SPINLOCK(ipip6_prl_lock);

#define for_each_prl_rcu(start) \
for (prl = rcu_dereference(start); \
prl; \
Expand Down Expand Up @@ -340,7 +338,7 @@ ipip6_tunnel_add_prl(struct ip_tunnel *t, struct ip_tunnel_prl *a, int chg)
if (a->addr == htonl(INADDR_ANY))
return -EINVAL;

spin_lock(&ipip6_prl_lock);
ASSERT_RTNL();

for (p = t->prl; p; p = p->next) {
if (p->addr == a->addr) {
Expand Down Expand Up @@ -370,7 +368,6 @@ ipip6_tunnel_add_prl(struct ip_tunnel *t, struct ip_tunnel_prl *a, int chg)
t->prl_count++;
rcu_assign_pointer(t->prl, p);
out:
spin_unlock(&ipip6_prl_lock);
return err;
}

Expand All @@ -397,7 +394,7 @@ ipip6_tunnel_del_prl(struct ip_tunnel *t, struct ip_tunnel_prl *a)
struct ip_tunnel_prl_entry *x, **p;
int err = 0;

spin_lock(&ipip6_prl_lock);
ASSERT_RTNL();

if (a && a->addr != htonl(INADDR_ANY)) {
for (p = &t->prl; *p; p = &(*p)->next) {
Expand All @@ -419,7 +416,6 @@ ipip6_tunnel_del_prl(struct ip_tunnel *t, struct ip_tunnel_prl *a)
}
}
out:
spin_unlock(&ipip6_prl_lock);
return err;
}

Expand Down

0 comments on commit a4dbf43

Please sign in to comment.