Skip to content
  • Rick Macklem's avatar
    nfsd: Fix the NFSv4.2 pNFS MDS server for NFSERR_NOSPC via LayoutError · f8dc0630
    Rick Macklem authored
    If a pNFS server's DS runs out of disk space, it replies
    NFSERR_NOSPC to the client doing writing.  For the Linux
    client, it then sends a LayoutError RPC to the MDS server to
    tell it about the error and keeps retrying, doing repeated
    LayoutGets to the MDS and Write RPCs to the DS.  The Linux client is
    "stuck" until disk space on the DS is free'd up unless
    a subsequent LayoutGet request is sent a NFSERR_NOSPC
    reply.
    The looping problem still occurs for NFSv4.1 mounts, but no
    fix for this is known at this time.
    
    This patch changes the pNFS MDS server to reply to LayoutGet
    operations with NFSERR_NOSPC once a LayoutError reports the
    problem, until the DS has available space.  This keeps the Linux
    NFSv4.2 from looping.
    
    Found during recent testing because of issues w.r.t. a DS
    being out of space found during a recent IEFT NFSv4 working
    group testing event.
    
    MFC after:	2 weeks
    f8dc0630