mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
pkt_sched: Kill netdev_queue lock.
We can simply use the qdisc->q.lock for all of the qdisc tree synchronization. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c7e4f3bbb4
commit
8387400092
7 changed files with 43 additions and 52 deletions
|
|
@ -163,6 +163,11 @@ struct tcf_proto
|
|||
struct tcf_proto_ops *ops;
|
||||
};
|
||||
|
||||
static inline spinlock_t *qdisc_lock(struct Qdisc *qdisc)
|
||||
{
|
||||
return &qdisc->q.lock;
|
||||
}
|
||||
|
||||
static inline struct Qdisc *qdisc_root(struct Qdisc *qdisc)
|
||||
{
|
||||
return qdisc->dev_queue->qdisc;
|
||||
|
|
@ -172,7 +177,7 @@ static inline spinlock_t *qdisc_root_lock(struct Qdisc *qdisc)
|
|||
{
|
||||
struct Qdisc *root = qdisc_root(qdisc);
|
||||
|
||||
return &root->dev_queue->lock;
|
||||
return qdisc_lock(root);
|
||||
}
|
||||
|
||||
static inline struct net_device *qdisc_dev(struct Qdisc *qdisc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue