Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109429
b: refs/heads/master
c: 102396a
h: refs/heads/master
i:
  109427: 6ec1799
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Aug 29, 2008
1 parent aaecc84 commit 84193ba
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 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: 3cc76caa98b092a8fb3e7b4303c70f847db0651f
refs/heads/master: 102396ae65108b026e4e1868e30fa013f45a169e
2 changes: 1 addition & 1 deletion trunk/net/sched/cls_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
}
}

root_lock = qdisc_root_lock(q);
root_lock = qdisc_root_sleeping_lock(q);

if (tp == NULL) {
/* Proto-tcf does not exist, create new one */
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/sched/cls_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static __inline__ int route4_fastmap_hash(u32 id, int iif)
static inline
void route4_reset_fastmap(struct Qdisc *q, struct route4_head *head, u32 id)
{
spinlock_t *root_lock = qdisc_root_lock(q);
spinlock_t *root_lock = qdisc_root_sleeping_lock(q);

spin_lock_bh(root_lock);
memset(head->fastmap, 0, sizeof(head->fastmap));
Expand Down
8 changes: 4 additions & 4 deletions trunk/net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,8 @@ static int tc_fill_qdisc(struct sk_buff *skb, struct Qdisc *q, u32 clid,
if (q->stab && qdisc_dump_stab(skb, q->stab) < 0)
goto nla_put_failure;

if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS,
TCA_XSTATS, qdisc_root_lock(q), &d) < 0)
if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS, TCA_XSTATS,
qdisc_root_sleeping_lock(q), &d) < 0)
goto nla_put_failure;

if (q->ops->dump_stats && q->ops->dump_stats(q, &d) < 0)
Expand Down Expand Up @@ -1461,8 +1461,8 @@ static int tc_fill_tclass(struct sk_buff *skb, struct Qdisc *q,
if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0)
goto nla_put_failure;

if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS,
TCA_XSTATS, qdisc_root_lock(q), &d) < 0)
if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS, TCA_XSTATS,
qdisc_root_sleeping_lock(q), &d) < 0)
goto nla_put_failure;

if (cl_ops->dump_stats && cl_ops->dump_stats(q, cl, &d) < 0)
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/sched/sch_cbq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ static void cbq_put(struct Qdisc *sch, unsigned long arg)

if (--cl->refcnt == 0) {
#ifdef CONFIG_NET_CLS_ACT
spinlock_t *root_lock = qdisc_root_lock(sch);
spinlock_t *root_lock = qdisc_root_sleeping_lock(sch);
struct cbq_sched_data *q = qdisc_priv(sch);

spin_lock_bh(root_lock);
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ static int htb_init(struct Qdisc *sch, struct nlattr *opt)

static int htb_dump(struct Qdisc *sch, struct sk_buff *skb)
{
spinlock_t *root_lock = qdisc_root_lock(sch);
spinlock_t *root_lock = qdisc_root_sleeping_lock(sch);
struct htb_sched *q = qdisc_priv(sch);
struct nlattr *nest;
struct tc_htb_glob gopt;
Expand Down Expand Up @@ -1075,7 +1075,7 @@ static int htb_dump_class(struct Qdisc *sch, unsigned long arg,
struct sk_buff *skb, struct tcmsg *tcm)
{
struct htb_class *cl = (struct htb_class *)arg;
spinlock_t *root_lock = qdisc_root_lock(sch);
spinlock_t *root_lock = qdisc_root_sleeping_lock(sch);
struct nlattr *nest;
struct tc_htb_opt opt;

Expand Down
2 changes: 1 addition & 1 deletion trunk/net/sched/sch_netem.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ static int get_dist_table(struct Qdisc *sch, const struct nlattr *attr)
for (i = 0; i < n; i++)
d->table[i] = data[i];

root_lock = qdisc_root_lock(sch);
root_lock = qdisc_root_sleeping_lock(sch);

spin_lock_bh(root_lock);
d = xchg(&q->delay_dist, d);
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/sched/sch_teql.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ teql_destroy(struct Qdisc* sch)
txq = netdev_get_tx_queue(master->dev, 0);
master->slaves = NULL;

root_lock = qdisc_root_lock(txq->qdisc);
root_lock = qdisc_root_sleeping_lock(txq->qdisc);
spin_lock_bh(root_lock);
qdisc_reset(txq->qdisc);
spin_unlock_bh(root_lock);
Expand Down

0 comments on commit 84193ba

Please sign in to comment.