Thread (12 messages) flat view 12 messages, 3 authors, 2004-08-04

Re: [PATCH 2.6] cache align qdisc data

From: Patrick McHardy <hidden>
Date: 2004-08-03 20:42:44

Stephen Hemminger wrote:
That was some old messing around, that got in there...
Here is the correct patch.
 
The hunks are still there.
quoted hunk ↗ jump to hunk
@@ -1554,7 +1554,6 @@ hfsc_init_qdisc(struct Qdisc *sch, struc
	qopt = RTA_DATA(opt);

	memset(q, 0, sizeof(struct hfsc_sched));
-	sch->stats_lock = &sch->dev->queue_lock;

	q->defcls = qopt->defcls;
	for (i = 0; i < HFSC_HSIZE; i++)
@@ -1674,7 +1673,7 @@ hfsc_dump_qdisc(struct Qdisc *sch, struc
	RTA_PUT(skb, TCA_OPTIONS, sizeof(qopt), &qopt);

	sch->stats.qlen = sch->q.qlen;
-	if (qdisc_copy_stats(skb, &sch->stats, sch->stats_lock) < 0)
+	if (qdisc_copy_stats(skb, &sch->stats, &sch->dev->queue_lock) < 0)
		goto rtattr_failure;

	return skb->len;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help