]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfsd/nfs4proc.c
nfsd: implement pNFS layout recalls
[karo-tx-linux.git] / fs / nfsd / nfs4proc.c
index 2b91443497cc7168901a3505d1c5dabe926e3115..fa14359eb956519dbdb528c0c53912d16d1b03c6 100644 (file)
@@ -1301,6 +1301,10 @@ nfsd4_layoutget(struct svc_rqst *rqstp,
        if (nfserr)
                goto out;
 
+       nfserr = nfserr_recallconflict;
+       if (atomic_read(&ls->ls_stid.sc_file->fi_lo_recalls))
+               goto out_put_stid;
+
        nfserr = ops->proc_layoutget(current_fh->fh_dentry->d_inode,
                                     current_fh, lgp);
        if (nfserr)