• Mi Jinlong's avatar
    nfsd41: Deny new lock before RECLAIM_COMPLETE done · ab1350b2
    Mi Jinlong authored
    Before nfs41 client's RECLAIM_COMPLETE done, nfs server should deny any
    new locks or opens.
    
    rfc5661:
    
       " Whenever a client establishes a new client ID and before it does
       the first non-reclaim operation that obtains a lock, it MUST send a
       RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
       locks to reclaim.  If non-reclaim locking operations are done before
       the RECLAIM_COMPLETE, an NFS4ERR_GRACE error will be returned. "
    Signed-off-by: default avatarMi Jinlong <mijinlong@cn.fujitsu.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    ab1350b2
nfs4proc.c 40.3 KB