Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107719
b: refs/heads/master
c: 5fb6622
h: refs/heads/master
i:
  107717: f22d625
  107715: ea56afb
  107711: 044ad7a
v: v3
  • Loading branch information
David S. Miller committed Aug 3, 2008
1 parent c7393f5 commit 6a3efa1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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: 82f97b8d3cb3982ec97e081598c671fab2c321b0
refs/heads/master: 5fb662297b8a4bdadd60371c34b760efca948ebc
4 changes: 2 additions & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ int dev_queue_xmit(struct sk_buff *skb)
skb->tc_verd = SET_TC_AT(skb->tc_verd,AT_EGRESS);
#endif
if (q->enqueue) {
spinlock_t *root_lock = qdisc_root_lock(q);
spinlock_t *root_lock = qdisc_lock(q);

spin_lock(root_lock);

Expand Down Expand Up @@ -1995,7 +1995,7 @@ static void net_tx_action(struct softirq_action *h)
smp_mb__before_clear_bit();
clear_bit(__QDISC_STATE_SCHED, &q->state);

root_lock = qdisc_root_lock(q);
root_lock = qdisc_lock(q);
if (spin_trylock(root_lock)) {
qdisc_run(q);
spin_unlock(root_lock);
Expand Down
12 changes: 6 additions & 6 deletions trunk/net/sched/sch_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/* Main transmission queue. */

/* Modifications to data participating in scheduling must be protected with
* qdisc_root_lock(qdisc) spinlock.
* qdisc_lock(qdisc) spinlock.
*
* The idea is the following:
* - enqueue, dequeue are serialized via qdisc root lock
Expand Down Expand Up @@ -126,7 +126,7 @@ static inline int qdisc_restart(struct Qdisc *q)
if (unlikely((skb = dequeue_skb(q)) == NULL))
return 0;

root_lock = qdisc_root_lock(q);
root_lock = qdisc_lock(q);

/* And release qdisc */
spin_unlock(root_lock);
Expand Down Expand Up @@ -507,7 +507,7 @@ struct Qdisc * qdisc_create_dflt(struct net_device *dev,
}
EXPORT_SYMBOL(qdisc_create_dflt);

/* Under qdisc_root_lock(qdisc) and BH! */
/* Under qdisc_lock(qdisc) and BH! */

void qdisc_reset(struct Qdisc *qdisc)
{
Expand Down Expand Up @@ -543,7 +543,7 @@ static void __qdisc_destroy(struct rcu_head *head)
kfree((char *) qdisc - qdisc->padded);
}

/* Under qdisc_root_lock(qdisc) and BH! */
/* Under qdisc_lock(qdisc) and BH! */

void qdisc_destroy(struct Qdisc *qdisc)
{
Expand Down Expand Up @@ -659,7 +659,7 @@ static bool some_qdisc_is_running(struct net_device *dev, int lock)

dev_queue = netdev_get_tx_queue(dev, i);
q = dev_queue->qdisc;
root_lock = qdisc_root_lock(q);
root_lock = qdisc_lock(q);

if (lock)
spin_lock_bh(root_lock);
Expand Down Expand Up @@ -735,7 +735,7 @@ static void shutdown_scheduler_queue(struct net_device *dev,
struct Qdisc *qdisc_default = _qdisc_default;

if (qdisc) {
spinlock_t *root_lock = qdisc_root_lock(qdisc);
spinlock_t *root_lock = qdisc_lock(qdisc);

dev_queue->qdisc = qdisc_default;
dev_queue->qdisc_sleeping = qdisc_default;
Expand Down

0 comments on commit 6a3efa1

Please sign in to comment.