From: Doug Ledford <dledford@redhat.com>
To: Max Gurtovoy <maxg@mellanox.com>,
Bart Van Assche <bart.vanassche@wdc.com>,
Jason Gunthorpe <jgg@ziepe.ca>, Sagi Grimberg <sagi@grimberg.me>
Cc: Chuck Lever <chuck.lever@oracle.com>,
"arnd@arndb.de" <arnd@arndb.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"leonro@mellanox.com" <leonro@mellanox.com>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant
Date: Wed, 28 Feb 2018 13:55:14 -0500 [thread overview]
Message-ID: <1519844114.28560.216.camel@redhat.com> (raw)
In-Reply-To: <1e7c373f-21bd-4d45-3dd6-68467bf09d0d@mellanox.com>
[-- Attachment #1: Type: text/plain, Size: 1552 bytes --]
On Wed, 2018-02-28 at 11:50 +0200, Max Gurtovoy wrote:
>
> On 2/28/2018 2:21 AM, Bart Van Assche wrote:
> > On 02/27/18 14:15, Max Gurtovoy wrote:
> > > -static int __ib_process_cq(struct ib_cq *cq, int budget, struct ib_wc
> > > *poll_wc)
> > > +static int __ib_process_cq(struct ib_cq *cq, int budget, struct ib_wc
> > > *poll_wc,
> > > + int batch)
> > > {
> > > - int i, n, completed = 0;
> > > - struct ib_wc *wcs = poll_wc ? : cq->wc;
> > > + int i, n, ib_poll_batch, completed = 0;
> > > + struct ib_wc *wcs;
> > > +
> > > + if (poll_wc) {
> > > + wcs = poll_wc;
> > > + ib_poll_batch = batch;
> > > + } else {
> > > + wcs = cq->wc;
> > > + ib_poll_batch = IB_POLL_BATCH;
> > > + }
> >
> > Since this code has to be touched I think that we can use this
> > opportunity to get rid of the "poll_wc ? : cq->wc" conditional and
> > instead use what the caller passes. That will require to update all
> > __ib_process_cq(..., ..., NULL) calls. I also propose to let the caller
> > pass ib_poll_batch instead of figuring it out in this function.
> > Otherwise the approach of this patch looks fine to me.
>
> Thanks Bart.
> I'll make these changes and submit.
That sounds reasonable to me too, thanks for reworking and resubmitting.
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-02-28 18:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180220205924.2035765-1-arnd@arndb.de>
[not found] ` <1519161268.3737.12.camel@wdc.com>
[not found] ` <F2FB1034-BFB6-45ED-878E-6FADD756157D@oracle.com>
[not found] ` <c3eab137-1c37-0e6c-a53a-df2cf80653d2@grimberg.me>
[not found] ` <0f90134c-3d40-1d24-711f-e4ab32802bd8@mellanox.com>
[not found] ` <c1bcd5cc-381d-2d94-1278-f9fb5c9c0b14@grimberg.me>
2018-02-27 22:09 ` [PATCH] RDMA/core: reduce IB_POLL_BATCH constant Jason Gunthorpe
2018-02-27 22:15 ` Max Gurtovoy
2018-02-28 0:21 ` Bart Van Assche
2018-02-28 9:50 ` Max Gurtovoy
2018-02-28 18:55 ` Doug Ledford [this message]
2018-03-01 9:36 ` Max Gurtovoy
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=1519844114.28560.216.camel@redhat.com \
--to=dledford@redhat.com \
--cc=arnd@arndb.de \
--cc=bart.vanassche@wdc.com \
--cc=chuck.lever@oracle.com \
--cc=jgg@ziepe.ca \
--cc=leonro@mellanox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=maxg@mellanox.com \
--cc=sagi@grimberg.me \
/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