• Chuck Lever's avatar
    xprtrdma: MR-related memory allocation should be allowed to fail · 2d77058c
    Chuck Lever authored
    xprtrdma always drives a retry of MR allocation if it should fail.
    It should be safe to not use GFP_KERNEL for this purpose rather
    than sleeping in the memory allocator.
    
    In theory, if these weaker allocations are attempted first, memory
    exhaustion is likely to cause xprtrdma to fail fast and not then
    invoke the RDMA core APIs, which still might use GFP_KERNEL.
    
    Also note that rpc_task_gfp_mask() always sets __GFP_NORETRY and
    __GFP_NOWARN when an RPC-related allocation is being done in a
    worker thread. MR allocation is already always done in worker
    threads.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    2d77058c
frwr_ops.c 19.4 KB