Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-29 Thread Jarek Poplawski
On Fri, Jun 29, 2007 at 09:02:41AM +0200, Jarek Poplawski wrote: ... > same *bstats & *rate_est more than once (or max twice if we let > to add, change & remove them independently). ...but this doesn't look sensible at all! So, maybe, if we would need something counted with two intervals... But,

Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-28 Thread Jarek Poplawski
On Thu, Jun 28, 2007 at 02:55:51PM +0200, Patrick McHardy wrote: > Jarek Poplawski wrote: > > On Thu, Jun 28, 2007 at 02:23:36PM +0200, Patrick McHardy wrote: > > > >>Jarek Poplawski wrote: > >> > @@ -202,7 +201,6 @@ void gen_kill_estimator(struct gnet_stats_basic > *bstats, > struc

Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-28 Thread Jarek Poplawski
On Thu, Jun 28, 2007 at 02:55:51PM +0200, Patrick McHardy wrote: ... > Its overkill in that case. The concurrent additions and removals > can't happen. > Then the changelog needs one more change. Plus, maybe - btw, 1 line about this at the beginning of the file? Jarek P. - To unsubscribe from th

Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-28 Thread Patrick McHardy
Jarek Poplawski wrote: > On Thu, Jun 28, 2007 at 02:23:36PM +0200, Patrick McHardy wrote: > >>Jarek Poplawski wrote: >> @@ -202,7 +201,6 @@ void gen_kill_estimator(struct gnet_stats_basic *bstats, struct gen_estimator *est, **pest; for (idx=0; idx <= EST_MAX_INTERVAL;

Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-28 Thread Jarek Poplawski
On Thu, Jun 28, 2007 at 02:23:36PM +0200, Patrick McHardy wrote: > Jarek Poplawski wrote: > >>@@ -202,7 +201,6 @@ void gen_kill_estimator(struct gnet_stats_basic > >>*bstats, > >>struct gen_estimator *est, **pest; > >> > >>for (idx=0; idx <= EST_MAX_INTERVAL; idx++) { > >>- int

Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-28 Thread Patrick McHardy
Jarek Poplawski wrote: @@ -202,7 +201,6 @@ void gen_kill_estimator(struct gnet_stats_basic *bstats, struct gen_estimator *est, **pest; for (idx=0; idx <= EST_MAX_INTERVAL; idx++) { - int killed = 0; pest = &elist[idx].list; while ((est=*p

Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-28 Thread Jarek Poplawski
On Thu, Jun 28, 2007 at 08:54:48AM +0200, Jarek Poplawski wrote: ... > > @@ -215,10 +213,7 @@ void gen_kill_estimator(struct gnet_stats_basic > > *bstats, > > write_unlock_bh(&est_lock); > > > > kfree(est); > > - killed++; > >

Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-28 Thread Jarek Poplawski
On Wed, Jun 27, 2007 at 05:25:45PM +0200, Patrick McHardy wrote: ... > Additionally there are a few more related problems that seem to be > relicts from the timer when the estimator was qdisc specific and > could rely on the rtnl or dev->qdisc_lock: > > - the check whether the list is empty and a

Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-27 Thread Jarek Poplawski
On Wed, Jun 27, 2007 at 05:25:45PM +0200, Patrick McHardy wrote: > Patrick McHardy wrote: > > [NET]: gen_estimator: fix locking and timer related bugs > > > > > That one still left a race, we could be reinitalizing the timer > while it is still running. This patch additionally makes sure > each

Re: [NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-27 Thread Patrick McHardy
Patrick McHardy wrote: > [NET]: gen_estimator: fix locking and timer related bugs > That one still left a race, we could be reinitalizing the timer while it is still running. This patch additionally makes sure each timer is only initialized once. [NET]: gen_estimator: fix locking and timer rela

[NET]: gen_estimator: fix locking and timer related bugs [Re: [Bugme-new] [Bug 8668] New: HTB Deadlock]

2007-06-27 Thread Patrick McHardy
Patrick McHardy wrote: Jarek Poplawski wrote: I look at this just now, and maybe it's enough for asking, but definitely not enough for patch. I'll try to check this more in the evening, so I could send something tomorrow. So if it's not only about kindness, feel free to do it sooner and I've no