]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nfsd: fix v4 reply caching
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 16 Nov 2012 20:22:43 +0000 (15:22 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 26 Nov 2012 14:05:19 +0000 (09:05 -0500)
Very embarassing: 1091006c5eb15cba56785bd5b498a8d0b9546903 "nfsd: turn
on reply cache for NFSv4" missed a line, effectively leaving the reply
cache off in the v4 case.  I thought I'd tested that, but I guess not.

This time, wrote a pynfs test to confirm it works.

Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfssvc.c

index 2013aa001dab620e2e631872c57497b1cdef7afd..30d3784d028078ba7745d1083e4ce6409aca65bc 100644 (file)
@@ -640,7 +640,7 @@ nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp)
        }
 
        /* Store reply in cache. */
-       nfsd_cache_update(rqstp, proc->pc_cachetype, statp + 1);
+       nfsd_cache_update(rqstp, rqstp->rq_cachetype, statp + 1);
        return 1;
 }