From: Kamal Heib <kamalheib1@gmail.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Bart Van Assche <bvanassche@acm.org>,
linux-rdma@vger.kernel.org, Doug Ledford <dledford@redhat.com>,
Zhu Yanjun <yanjunz@nvidia.com>
Subject: Re: [PATCH v3 for-rc] RDMA/rxe: Fix panic when calling kmem_cache_create()
Date: Tue, 25 Aug 2020 18:18:58 +0300 [thread overview]
Message-ID: <20200825151858.GA254017@kheib-workstation> (raw)
In-Reply-To: <20200825132557.GH24045@ziepe.ca>
On Tue, Aug 25, 2020 at 10:25:57AM -0300, Jason Gunthorpe wrote:
> On Tue, Aug 25, 2020 at 12:36:24PM +0300, Kamal Heib wrote:
> > On Mon, Aug 24, 2020 at 01:51:11PM -0300, Jason Gunthorpe wrote:
> > > On Mon, Aug 24, 2020 at 09:41:14AM -0700, Bart Van Assche wrote:
> > > > On 8/24/20 8:52 AM, Kamal Heib wrote:
> > > > > +bool rxe_is_loaded;
> > > >
> > > > The name of this variable seems wrong to me. My understanding is that rxe_module_init() is
> > > > called whether or not rxe has been built as a module. Consider renaming this variable into
> > > > e.g. "rxe_initialized".
> > > >
> > > > > diff --git a/drivers/infiniband/sw/rxe/rxe_sysfs.c b/drivers/infiniband/sw/rxe/rxe_sysfs.c
> > > > > index ccda5f5a3bc0..12c7ca0764d5 100644
> > > > > +++ b/drivers/infiniband/sw/rxe/rxe_sysfs.c
> > > > > @@ -61,6 +61,11 @@ static int rxe_param_set_add(const char *val, const struct kernel_param *kp)
> > > > > struct net_device *ndev;
> > > > > struct rxe_dev *exists;
> > > > > + if (!rxe_is_loaded) {
> > > > > + pr_err("Please make sure to load the rdma_rxe module first\n");
> > > > > + return -EINVAL;
> > > > > + }
> > > > > +
> > > > > len = sanitize_arg(val, intf, sizeof(intf));
> > > > > if (!len) {
> > > > > pr_err("add: invalid interface name\n");
> > > >
> > > > The above message is misleading. Consider changing it into e.g. the following:
> > > >
> > > > Please wait until initialization of the rdma_rxe module has finished.
> > >
> > > How about "Module parameters are not supported, use rdma link add"
> >
> > I don't think so, This patch is targeted to for-rc (stable) and the
> > support of "rdma link add" is not part of all the stable versions.
>
> then add "or rxe_cfg"
>
Done.
Thanks,
Kamal
> Jason
next prev parent reply other threads:[~2020-08-25 15:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-24 15:52 [PATCH v3 for-rc] RDMA/rxe: Fix panic when calling kmem_cache_create() Kamal Heib
2020-08-24 16:41 ` Bart Van Assche
2020-08-24 16:51 ` Jason Gunthorpe
2020-08-25 9:36 ` Kamal Heib
2020-08-25 13:25 ` Jason Gunthorpe
2020-08-25 15:18 ` Kamal Heib [this message]
2020-08-25 9:27 ` Kamal Heib
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=20200825151858.GA254017@kheib-workstation \
--to=kamalheib1@gmail.com \
--cc=bvanassche@acm.org \
--cc=dledford@redhat.com \
--cc=jgg@ziepe.ca \
--cc=linux-rdma@vger.kernel.org \
--cc=yanjunz@nvidia.com \
/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