From: Eric Dumazet <eric.dumazet@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, tglx@linutronix.de
Subject: Re: [PATCH 2/2]: pkt_sched: Convert CBQ to tasklet_hrtimer.
Date: Fri, 28 Aug 2009 17:54:53 +0200 [thread overview]
Message-ID: <4A97FDCD.10208@gmail.com> (raw)
In-Reply-To: <20090821.170333.153413841.davem@davemloft.net>
David Miller a écrit :
> This code expects to run in softirq context, and bare hrtimers
> run in hw IRQ context.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
...
> sch->flags &= ~TCQ_F_THROTTLED;
> @@ -1214,7 +1216,7 @@ cbq_reset(struct Qdisc* sch)
> q->tx_class = NULL;
> q->tx_borrowed = NULL;
> qdisc_watchdog_cancel(&q->watchdog);
> - hrtimer_cancel(&q->delay_timer);
> + tasklet_hrtimer_cancel(&q->delay_timer);
> q->toplevel = TC_CBQ_MAXLEVEL;
> q->now = psched_get_time();
> q->now_rt = q->now;
David
I now have these dmesg warnings when playing with cbq
# tc qdisc del dev eth3 root
# tc qdisc add dev eth3 root handle 1: est 1sec 8sec cbq avpkt 1000 rate 1000Mbit bandwidth 1000Mbit
# tc qdisc del dev eth3 root
[12786.458485] Attempt to kill tasklet from interrupt
[12786.458522] Attempt to kill tasklet from interrupt
[12786.465261] Attempt to kill tasklet from interrupt
[12786.465286] Attempt to kill tasklet from interrupt
probably becauce cbq_reset() being called from interrupt context ?
Thanks
next prev parent reply other threads:[~2009-08-28 15:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-22 0:03 [PATCH 2/2]: pkt_sched: Convert CBQ to tasklet_hrtimer David Miller
2009-08-22 9:17 ` Thomas Gleixner
2009-08-23 1:08 ` David Miller
2009-08-23 7:22 ` Thomas Gleixner
2009-08-24 1:54 ` David Miller
2009-08-28 15:54 ` Eric Dumazet [this message]
2009-08-28 19:30 ` David Miller
2009-08-28 19:51 ` Thomas Gleixner
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=4A97FDCD.10208@gmail.com \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=tglx@linutronix.de \
/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).