All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] ib_core: Enable and expose force_mr module parameter
Date: Mon, 15 May 2017 11:09:06 -0400	[thread overview]
Message-ID: <02AFF424-A387-47F7-BD24-61C7734B9008@oracle.com> (raw)
In-Reply-To: <20170515145757.GI3616-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>


> On May 15, 2017, at 10:57 AM, Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> 
> On Mon, May 15, 2017 at 10:52:44AM -0400, Chuck Lever wrote:
>> The fourth parameter of the module_param_named macro is a set of
>> file permissions. Passing 0 there means that module parameter is
>> not created and that adding "options ib_core force_mr=1" to a
>> modprobe.conf file has no effect.
>> 
>> The default setting of rdma_rw_force_mr continues to be 0, or false.
>> 
>> Fixes: a060b5629ab0 ("IB/core: generic RDMA READ/WRITE API")
>> Signed-off-by: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> 
> Chuck,
> 
> Do we really need this parameter?

Hi Leon-

Christoph and Sagi introduced this with the new rdma_rw API.
The default behavior is to avoid the use of FRWR, even for
devices that can support FRWR but also work without. FRWR is
used only for iWARP devices, which require it; but FRWR can
have a (slight) negative performance impact, which is why it
is not the default.

The purpose of this module parameter is to enable the use of
FRWR for devices that can go either way, as a way to test the
FRWR capability when using those devices.

I'm not sure we _need_ to have the module parameter. But I've
certainly used it while developing the NFSD conversion to use
the rdma_rw API, since I have no iWARP devices here.


>> ---
>> drivers/infiniband/core/rw.c |    2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/drivers/infiniband/core/rw.c b/drivers/infiniband/core/rw.c
>> index dbfd854..1cc8f07 100644
>> --- a/drivers/infiniband/core/rw.c
>> +++ b/drivers/infiniband/core/rw.c
>> @@ -23,7 +23,7 @@ enum {
>> };
>> 
>> static bool rdma_rw_force_mr;
>> -module_param_named(force_mr, rdma_rw_force_mr, bool, 0);
>> +module_param_named(force_mr, rdma_rw_force_mr, bool, 0644);
>> MODULE_PARM_DESC(force_mr, "Force usage of MRs for RDMA READ/WRITE operations");
>> 
>> /*
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
Chuck Lever



--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-05-15 15:09 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15 14:52 [PATCH] ib_core: Enable and expose force_mr module parameter Chuck Lever
     [not found] ` <20170515145203.10708.16921.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-05-15 14:57   ` Leon Romanovsky
     [not found]     ` <20170515145757.GI3616-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-15 15:09       ` Chuck Lever [this message]
     [not found]         ` <02AFF424-A387-47F7-BD24-61C7734B9008-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-05-15 17:00           ` Leon Romanovsky
     [not found]             ` <20170515170021.GJ3616-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-15 17:22               ` Chuck Lever
     [not found]                 ` <AE3152CC-B7C8-4C51-ADDE-C3822533BB94-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-05-15 17:46                   ` Jason Gunthorpe
     [not found]                     ` <20170515174646.GC6229-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-05-15 18:55                       ` Leon Romanovsky
2017-05-16  5:42                   ` Christoph Hellwig
     [not found]                     ` <20170516054256.GA4013-jcswGhMUV9g@public.gmane.org>
2017-05-16  7:22                       ` Sagi Grimberg
     [not found]                         ` <d46b0a41-92c2-2ce2-5cf2-ac5c6c3811cd-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-05-16 14:57                           ` Chuck Lever
2017-06-19 15:26 Chuck Lever
     [not found] ` <20170619152351.2866.11046.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-06-19 15:30   ` Christoph Hellwig
2017-06-20  7:24   ` Sagi Grimberg
2017-06-20  7:32   ` Leon Romanovsky
     [not found]     ` <20170620073236.GO17846-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-20 15:43       ` Chuck Lever
     [not found]         ` <DE0C511C-A4CB-4D76-8BA7-6BFF81F590B3-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-20 18:03           ` Leon Romanovsky
     [not found]             ` <20170620180348.GV17846-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-20 18:23               ` Chuck Lever
     [not found]                 ` <C27E2410-44B7-451E-8069-DF1444048158-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-20 18:40                   ` Leon Romanovsky
     [not found]                     ` <20170620184046.GW17846-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-21 14:46                       ` Chuck Lever
     [not found]                         ` <B34E95B2-A7D9-4725-B7C2-3DA4DACD29B7-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-21 14:56                           ` Leon Romanovsky
2017-06-27  9:24                           ` Sagi Grimberg
     [not found]                             ` <16d52534-5564-8137-a8b3-6c66df6bb508-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-06-28  9:56                               ` Leon Romanovsky
     [not found]                                 ` <20170628095640.GB1248-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-28 10:15                                   ` Sagi Grimberg
     [not found]                                     ` <64eae30c-9490-b801-550d-d871473f0d29-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-06-28 13:45                                       ` Leon Romanovsky
     [not found]                                         ` <20170628134528.GE1248-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-28 14:48                                           ` Sagi Grimberg
     [not found]                                             ` <275acec0-215e-8157-e6a0-4c0f48fe3d75-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-06-28 15:40                                               ` Leon Romanovsky
2017-06-28 14:49                                   ` Chuck Lever
     [not found]                                     ` <373E6A00-8505-468C-A974-DCDAC15A3B7B-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-28 15:41                                       ` Leon Romanovsky

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=02AFF424-A387-47F7-BD24-61C7734B9008@oracle.com \
    --to=chuck.lever-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
    --cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.