]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfsd/nfs4state.c
nfsd4: return delegation immediately if lease fails
[karo-tx-linux.git] / fs / nfsd / nfs4state.c
index a7d8a11943eebdabf72c6b861ec25b6fc67f4961..d44a4bf71cefe298b9cb993c08b0afa0bfc2beaa 100644 (file)
@@ -3143,8 +3143,10 @@ out_free:
 out_no_deleg:
        open->op_delegate_type = NFS4_OPEN_DELEGATE_NONE;
        if (open->op_claim_type == NFS4_OPEN_CLAIM_PREVIOUS &&
-           open->op_delegate_type != NFS4_OPEN_DELEGATE_NONE)
+           open->op_delegate_type != NFS4_OPEN_DELEGATE_NONE) {
                dprintk("NFSD: WARNING: refusing delegation reclaim\n");
+               open->op_recall = 1;
+       }
 
        /* 4.1 client asking for a delegation? */
        if (open->op_deleg_want)