Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368132
b: refs/heads/master
c: 7f0e44a
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Mar 7, 2013
1 parent 79567f7 commit 4ed8664
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 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: bf5e4dd6b26058d1a31864ea1a7002172023b147
refs/heads/master: 7f0e44ac9f7f12a2519bfed9ea4df3c1471bd8bb
8 changes: 4 additions & 4 deletions trunk/include/net/ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ struct ipv6_txoptions {
};

struct ip6_flowlabel {
struct ip6_flowlabel *next;
struct ip6_flowlabel __rcu *next;
__be32 label;
atomic_t users;
struct in6_addr dst;
Expand All @@ -238,9 +238,9 @@ struct ip6_flowlabel {
#define IPV6_FLOWLABEL_MASK cpu_to_be32(0x000FFFFF)

struct ipv6_fl_socklist {
struct ipv6_fl_socklist *next;
struct ip6_flowlabel *fl;
struct rcu_head rcu;
struct ipv6_fl_socklist __rcu *next;
struct ip6_flowlabel *fl;
struct rcu_head rcu;
};

extern struct ip6_flowlabel *fl6_sock_lookup(struct sock *sk, __be32 label);
Expand Down
11 changes: 8 additions & 3 deletions trunk/net/ipv6/ip6_flowlabel.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ static void ip6_fl_gc(unsigned long dummy)
spin_lock(&ip6_fl_lock);

for (i=0; i<=FL_HASH_MASK; i++) {
struct ip6_flowlabel *fl, **flp;
struct ip6_flowlabel *fl;
struct ip6_flowlabel __rcu **flp;

flp = &fl_ht[i];
while ((fl = rcu_dereference_protected(*flp,
lockdep_is_held(&ip6_fl_lock))) != NULL) {
Expand Down Expand Up @@ -179,7 +181,9 @@ static void __net_exit ip6_fl_purge(struct net *net)

spin_lock(&ip6_fl_lock);
for (i = 0; i <= FL_HASH_MASK; i++) {
struct ip6_flowlabel *fl, **flp;
struct ip6_flowlabel *fl;
struct ip6_flowlabel __rcu **flp;

flp = &fl_ht[i];
while ((fl = rcu_dereference_protected(*flp,
lockdep_is_held(&ip6_fl_lock))) != NULL) {
Expand Down Expand Up @@ -506,7 +510,8 @@ int ipv6_flowlabel_opt(struct sock *sk, char __user *optval, int optlen)
struct ipv6_pinfo *np = inet6_sk(sk);
struct in6_flowlabel_req freq;
struct ipv6_fl_socklist *sfl1=NULL;
struct ipv6_fl_socklist *sfl, **sflp;
struct ipv6_fl_socklist *sfl;
struct ipv6_fl_socklist __rcu **sflp;
struct ip6_flowlabel *fl, *fl1 = NULL;


Expand Down

0 comments on commit 4ed8664

Please sign in to comment.