• Chuck Lever's avatar
    NFSD: Reduce amount of struct nfsd4_compoundargs that needs clearing · 3fdc5464
    Chuck Lever authored
    Have SunRPC clear everything except for the iops array. Then have
    each NFSv4 XDR decoder clear it's own argument before decoding.
    
    Now individual operations may have a large argument struct while not
    penalizing the vast majority of operations with a small struct.
    
    And, clearing the argument structure occurs as the argument fields
    are initialized, enabling the CPU to do write combining on that
    memory. In some cases, clearing is not even necessary because all
    of the fields in the argument structure are initialized by the
    decoder.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    3fdc5464
nfs4proc.c 97.1 KB