• Chuck Lever's avatar
    xprtrdma: Remove support for FMR memory registration · ba69cd12
    Chuck Lever authored
    FMR is not supported on most recent RDMA devices. It is also less
    secure than FRWR because an FMR memory registration can expose
    adjacent bytes to remote reading or writing. As discussed during the
    RDMA BoF at LPC 2018, it is time to remove support for FMR in the
    NFS/RDMA client stack.
    
    Note that NFS/RDMA server-side uses either local memory registration
    or FRWR. FMR is not used.
    
    There are a few Infiniband/RoCE devices in the kernel tree that do
    not appear to support MEM_MGT_EXTENSIONS (FRWR), and therefore will
    not support client-side NFS/RDMA after this patch. These are:
    
     - mthca
     - qib
     - hns (RoCE)
    
    Users of these devices can use NFS/TCP on IPoIB instead.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    ba69cd12
verbs.c 38.5 KB