lartc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: devik <devik@cdi.cz>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB: suspicious_delay quick patch and explanation
Date: Wed, 22 May 2002 13:36:06 +0000	[thread overview]
Message-ID: <marc-lartc-102207471313351@msgid-missing> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 567 bytes --]

Hi,

seems like if I understand suspicious_delay... and
assertion (delay > 0 && delay < 5000000) failed messages
reason:
 It is not really error. It is ok but my assertions in code
 are rather too restrictive. Inner class can delay up to
 mdelay (1minute) but I tested it to 5sec.

Attached patch against htb 3.5 should fix it so that you should
no longer see any warnings. It it will be succesfull (no other
bug reports) it will go into 3.6 and we could advance from beta
to release status.

Use patch -p0 to apply it from linux kernel subdirectory.

regards,
devik

[-- Attachment #2: patch --]
[-- Type: TEXT/PLAIN, Size: 518 bytes --]

--- net/sched/sch_htb.c	Tue May 21 21:34:51 2002
+++ net/sched/sch_htb_.c	Wed May 22 15:28:26 2002
@@ -411,7 +411,7 @@ static void htb_add_to_wait_tree (struct
 #ifdef HTB_DEBUG
 	if (cl->pq_node.rb_color != -1) { BUG_TRAP(0); return; }
 	HTB_CHCL(cl);
-	if ((delay <= 0 || delay >= 5000000) && net_ratelimit())
+	if ((delay <= 0 || delay > cl->mbuffer) && net_ratelimit())
 		printk(KERN_ERR "HTB: suspicious delay in wait_tree d=%ld cl=%X h=%d\n",delay,cl->classid,debug_hint);
 #endif
 	DEVIK_MSTART(9);

                 reply	other threads:[~2002-05-22 13:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-102207471313351@msgid-missing \
    --to=devik@cdi.cz \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).