On Wed, May 13, 2020 at 07:11:59PM +0300, Max Gurtovoy wrote: > > On 5/13/2020 5:57 PM, Jason Gunthorpe wrote: > > On Wed, May 13, 2020 at 05:49:30PM +0300, Max Gurtovoy wrote: > > > FMR is not supported on most recent RDMA devices (that use fast memory > > > registration mechanism). Also, FMR was recently removed from NFS/RDMA > > > ULP. > > > > > > Signed-off-by: Max Gurtovoy <maxg@xxxxxxxxxxxx> > > > Reviewed-by: Israel Rukshin <israelr@xxxxxxxxxxxx> > > > drivers/infiniband/ulp/srp/ib_srp.c | 221 +++--------------------------------- > > > drivers/infiniband/ulp/srp/ib_srp.h | 27 +---- > > > 2 files changed, 24 insertions(+), 224 deletions(-) > > > > > > diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c > > > index cd1181c..73ffb00 100644 > > > +++ b/drivers/infiniband/ulp/srp/ib_srp.c > > > @@ -71,7 +71,7 @@ > > > static unsigned int cmd_sg_entries; > > > static unsigned int indirect_sg_entries; > > > static bool allow_ext_sg; > > > -static bool prefer_fr = true; > > > +static bool prefer_fr; > > > static bool register_always = true; > > > static bool never_register; > > > static int topspin_workarounds = 1; > > > @@ -97,7 +97,7 @@ > > > module_param(prefer_fr, bool, 0444); > > > MODULE_PARM_DESC(prefer_fr, > > > -"Whether to use fast registration if both FMR and fast registration are supported"); > > > +"Whether to use fast registration if both FMR and fast registration are supported [deprecated]"); > > Why are we not just deleting this? > > Are you talking about the module param ? > > Usually we deprecate it since we don't want to break existing APIs. Well, you just basically borke the bevaior of the flag, so you should delete it as setting it won't do what it is supposed to anymore. Jason