Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64987
b: refs/heads/master
c: e1e992e
h: refs/heads/master
i:
  64985: 2b3544b
  64983: c342b4e
v: v3
  • Loading branch information
Jamal Hadi Salim authored and David S. Miller committed Sep 14, 2007
1 parent 276735d commit 2f6b585
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 4878809f711981a602cc562eb47994fc81ea0155
refs/heads/master: e1e992e52faa588667e1378a2573b4b8e3fa6670
8 changes: 4 additions & 4 deletions trunk/net/sched/act_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static int tcf_dump_walker(struct sk_buff *skb, struct netlink_callback *cb,
int err = 0, index = -1,i = 0, s_i = 0, n_i = 0;
struct rtattr *r ;

read_lock(hinfo->lock);
read_lock_bh(hinfo->lock);

s_i = cb->args[0];

Expand Down Expand Up @@ -96,7 +96,7 @@ static int tcf_dump_walker(struct sk_buff *skb, struct netlink_callback *cb,
}
}
done:
read_unlock(hinfo->lock);
read_unlock_bh(hinfo->lock);
if (n_i)
cb->args[0] += n_i;
return n_i;
Expand Down Expand Up @@ -156,13 +156,13 @@ struct tcf_common *tcf_hash_lookup(u32 index, struct tcf_hashinfo *hinfo)
{
struct tcf_common *p;

read_lock(hinfo->lock);
read_lock_bh(hinfo->lock);
for (p = hinfo->htab[tcf_hash(index, hinfo->hmask)]; p;
p = p->tcfc_next) {
if (p->tcfc_index == index)
break;
}
read_unlock(hinfo->lock);
read_unlock_bh(hinfo->lock);

return p;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/sched/act_police.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static int tcf_act_police_walker(struct sk_buff *skb, struct netlink_callback *c
int err = 0, index = -1, i = 0, s_i = 0, n_i = 0;
struct rtattr *r;

read_lock(&police_lock);
read_lock_bh(&police_lock);

s_i = cb->args[0];

Expand Down Expand Up @@ -85,7 +85,7 @@ static int tcf_act_police_walker(struct sk_buff *skb, struct netlink_callback *c
}
}
done:
read_unlock(&police_lock);
read_unlock_bh(&police_lock);
if (n_i)
cb->args[0] += n_i;
return n_i;
Expand Down

0 comments on commit 2f6b585

Please sign in to comment.