From: Zhen Lei <thunder.leizhen@huawei.com>
To: Doug Ledford <dledford@redhat.com>,
Jason Gunthorpe <jgg@ziepe.ca>,
"Leon Romanovsky" <leon@kernel.org>,
linux-rdma <linux-rdma@vger.kernel.org>
Cc: Zhen Lei <thunder.leizhen@huawei.com>
Subject: [PATCH v2 0/2] RDMA/cm: Optimise rbtree searching
Date: Wed, 12 May 2021 18:05:35 +0800 [thread overview]
Message-ID: <20210512100537.6273-1-thunder.leizhen@huawei.com> (raw)
v1 --> v2:
1. On the advice of Jason Gunthorpe, add patch 2
Rewrite the rbtree traversing in the normal pattern:
if (a < b)
..
else if (a > b)
..
else // a == b
..
Zhen Lei (2):
RDMA/cm: Delete two redundant condition branches
RDMA/cm: Optimise rbtree searching
drivers/infiniband/core/cm.c | 54 +++++++++++++++++-------------------
1 file changed, 26 insertions(+), 28 deletions(-)
--
2.26.0.106.g9fadedd
next reply other threads:[~2021-05-12 10:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-12 10:05 Zhen Lei [this message]
2021-05-12 10:05 ` [PATCH v2 1/2] RDMA/cm: Delete two redundant condition branches Zhen Lei
2021-05-12 10:05 ` [PATCH v2 2/2] RDMA/cm: Optimise rbtree searching Zhen Lei
2021-05-12 12:50 ` Jason Gunthorpe
2021-05-12 13:12 ` Leizhen (ThunderTown)
2021-05-12 14:26 ` Jason Gunthorpe
2021-05-13 2:25 ` Leizhen (ThunderTown)
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=20210512100537.6273-1-thunder.leizhen@huawei.com \
--to=thunder.leizhen@huawei.com \
--cc=dledford@redhat.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-rdma@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