From: Jens Axboe <jens.axboe@oracle.com>
To: Jarek Poplawski <jarkao2@o2.pl>,
Ismail Donmez <ismail@pardus.org.tr>,
Herbert Xu <herbert@gondor.apana.org.au>,
netdev@vger.kernel.org
Subject: Re: [PATCH] Revert [NET_SCHED]: HTB: fix incorrect use of RB_EMPTY_NODE
Date: Tue, 3 Oct 2006 12:28:32 +0200 [thread overview]
Message-ID: <20061003102831.GA7778@kernel.dk> (raw)
In-Reply-To: <20061002111555.GB2936@ff.dom.local>
On Mon, Oct 02 2006, Jarek Poplawski wrote:
> On Mon, Oct 02, 2006 at 12:24:47PM +0200, Jarek Poplawski wrote:
> > On 30-09-2006 21:23, Ismail Donmez wrote:
> > > Hi,
> > >
> > > With commit 10fd48f2376db52f08bf0420d2c4f580e39269e1 [1] , RB_EMPTY_NODE
> > > changed behaviour so it returns false when the node is empty as expected.
> > ...
> > > - if (!RB_EMPTY_NODE(rb)) {
> > > + if (RB_EMPTY_NODE(rb)) {
> >
> > Maybe you have some kind of agreement with Jens Axboe but I
> > can't understand current way of kernel cooperation:
> > he changes some global behavior to the opposite and fixes
> > his code in three places but can't fix it in the fourth place
> ...
>
> But I see it's not so bad and net_sched isn't the last!
> It looks deadline-iosched.c and one place in as-iosched.c
> (~ 466 line) where probably also forgotten.
I don't see any missed changes.
> Another question - is there any change planned?
> If not why in rbtree.c is:
>
> + if (rb_parent(node) == node)
>
> instead of:
>
> + if (RB_EMPTY_NODE(rb))
RB_EMPTY_NODE was (re)-introduced after that change, and it never
propagated. Changing it now would be fine and easier to read.
--
Jens Axboe
next prev parent reply other threads:[~2006-10-03 10:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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=20061003102831.GA7778@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=herbert@gondor.apana.org.au \
--cc=ismail@pardus.org.tr \
--cc=jarkao2@o2.pl \
--cc=netdev@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).