+ sch_htb-use-rb_first-cleanup.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     sch_htb: use rb_first() cleanup

has been added to the -mm tree.  Its filename is

     sch_htb-use-rb_first-cleanup.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: sch_htb: use rb_first() cleanup
From: Akinobu Mita <akinobu.mita@xxxxxxxxx>

Use rb_first() to get first entry in rb tree.

Signed-off-by: Akinbou Mita <akinobu.mita@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 net/sched/sch_htb.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff -puN net/sched/sch_htb.c~sch_htb-use-rb_first-cleanup net/sched/sch_htb.c
--- a/net/sched/sch_htb.c~sch_htb-use-rb_first-cleanup
+++ a/net/sched/sch_htb.c
@@ -786,11 +786,10 @@ static long htb_do_events(struct htb_sch
 	for (i = 0; i < 500; i++) {
 		struct htb_class *cl;
 		long diff;
-		struct rb_node *p = q->wait_pq[level].rb_node;
+		struct rb_node *p = rb_first(&q->wait_pq[level]);
+
 		if (!p)
 			return 0;
-		while (p->rb_left)
-			p = p->rb_left;
 
 		cl = rb_entry(p, struct htb_class, pq_node);
 		if (time_after(cl->pq_key, q->jiffies)) {
_

Patches currently in -mm which might be from akinobu.mita@xxxxxxxxx are

jffs2-use-rb_first-and-rb_last-cleanup.patch
sch_htb-use-rb_first-cleanup.patch
rd-memory-leak-on-rd_init-failure.patch
epca-prevent-panic-on-tty_register_driver-failure.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux