netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Revert [NET_SCHED]: HTB: fix incorrect use of RB_EMPTY_NODE
@ 2006-09-30 19:23 Ismail Donmez
  2006-09-30 19:25 ` Ismail Donmez
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Ismail Donmez @ 2006-09-30 19:23 UTC (permalink / raw)
  To: netdev; +Cc: axboe, Herbert Xu

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

Hi,

With commit 10fd48f2376db52f08bf0420d2c4f580e39269e1 [1] ,  RB_EMPTY_NODE 
changed behaviour so it returns false when the node is empty as expected. 
Hence Herbert's fix for sched_htb.c should be reverted.

[1] 
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=10fd48f2376db52f08bf0420d2c4f580e39269e1;hp=9817064b68fef7e4580c6df1ea597e106b9ff88b

Regards,
ismail

-- 
They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety.
-- Benjamin Franklin

[-- Attachment #2: rb.diff --]
[-- Type: text/x-diff, Size: 454 bytes --]

diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index 6c058e3..1f1360e 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -391,7 +391,7 @@ static inline void htb_add_class_to_row(
 /* If this triggers, it is a bug in this code, but it need not be fatal */
 static void htb_safe_rb_erase(struct rb_node *rb, struct rb_root *root)
 {
-	if (!RB_EMPTY_NODE(rb)) {
+	if (RB_EMPTY_NODE(rb)) {
 		WARN_ON(1);
 	} else {
 		rb_erase(rb, root);

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-10-03 20:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-30 19:23 [PATCH] Revert [NET_SCHED]: HTB: fix incorrect use of RB_EMPTY_NODE Ismail Donmez
2006-09-30 19:25 ` Ismail Donmez
2006-10-01  1:52 ` Herbert Xu
2006-10-01  6:14   ` Ismail Donmez
2006-10-01  6:17     ` Ismail Donmez
2006-10-02 10:24 ` Jarek Poplawski
2006-10-02 11:15   ` Jarek Poplawski
2006-10-02 11:52     ` Jarek Poplawski
2006-10-03 10:28     ` Jens Axboe
2006-10-03 11:53       ` Jarek Poplawski
2006-10-03 12:54       ` Ismail Donmez
2006-10-03 18:05         ` Patrick McHardy
2006-10-03 20:49           ` David Miller
2006-10-02 13:49   ` Ismail Donmez
2006-10-03  7:27     ` Jarek Poplawski
2006-10-03 10:30     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).