netdev
[Top] [All Lists]

Re: PROBLEM: IProute hangs after running traffic shaping scripts

To: Thomas Graf <tgraf@xxxxxxx>
Subject: Re: PROBLEM: IProute hangs after running traffic shaping scripts
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Mon, 08 Nov 2004 17:12:00 +0100
Cc: Szymon Miotk <spam@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20041108135431.GE31969@postel.suug.ch>
References: <418B4C7C.8000402@crocom.com.pl> <418EA032.7050507@trash.net> <418ECE85.9090203@trash.net> <20041108135431.GE31969@postel.suug.ch>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20041008 Debian/1.7.3-5
Thomas Graf wrote:

+ /* unlink inner qdiscs from dev->qdisc_list immediately */
+ if (qdisc->ops->cl_ops != NULL)
+ list_add(&qdisc->list, &cql);



I think you should extend the above to:

if (qdisc->ops->cl_ops != NULL && !list_empty(&qdisc->list))

Otherwise you might unlink entries just added before the
rcu callback and it prevents an unneeded attempt to delete
qdiscs for inner classful qdiscs


There is some optimization possible, I will do this for the final
patch. But I don't understand the problem you refer to, can you
please explain ?

Regards
Patrick


<Prev in Thread] Current Thread [Next in Thread>