]> Pileus Git - ~andy/linux/blobdiff - fs/nfsd/nfssvc.c
nfsd41: DRC save, restore, and clear functions
[~andy/linux] / fs / nfsd / nfssvc.c
index ef0a3686639d19229fd710a999ddd8752c0a7587..b5168d1898ecf1efd976b478a1b8c19f8448751d 100644 (file)
@@ -515,6 +515,10 @@ nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp)
                + rqstp->rq_res.head[0].iov_len;
        rqstp->rq_res.head[0].iov_len += sizeof(__be32);
 
+       /* NFSv4.1 DRC requires statp */
+       if (rqstp->rq_vers == 4)
+               nfsd4_set_statp(rqstp, statp);
+
        /* Now call the procedure handler, and encode NFS status. */
        nfserr = proc->pc_func(rqstp, rqstp->rq_argp, rqstp->rq_resp);
        nfserr = map_new_errors(rqstp->rq_vers, nfserr);