diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-11-16 15:22:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-11 09:18:37 -0800 |
commit | 9dbe75d2b4111884596c498ca0acbaf71952ae97 (patch) | |
tree | eabf222260695ce91e6fe766a0f656d016ab96fb | |
parent | 7063a3eea85cf9246cdc917096d25d96f1cc341a (diff) | |
download | linux-stable-9dbe75d2b4111884596c498ca0acbaf71952ae97.tar.gz linux-stable-9dbe75d2b4111884596c498ca0acbaf71952ae97.tar.bz2 linux-stable-9dbe75d2b4111884596c498ca0acbaf71952ae97.zip |
nfsd: fix v4 reply caching
commit 57d276d71aef7d8305ff002a070cb98deb2edced upstream.
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.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | fs/nfsd/nfssvc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 2013aa001dab..30d3784d0280 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -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; } |