diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-11-16 15:22:43 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-26 09:05:19 -0500 |
commit | 57d276d71aef7d8305ff002a070cb98deb2edced (patch) | |
tree | ff6d76b3f64f4529b3a007054945fe554a4072e1 /fs | |
parent | 0912128149e86b48ed946371298d7fe61120d627 (diff) |
nfsd: fix v4 reply caching
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>
Diffstat (limited to 'fs')
-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 2013aa001da..30d3784d028 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c | |||
@@ -640,7 +640,7 @@ nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp) | |||
640 | } | 640 | } |
641 | 641 | ||
642 | /* Store reply in cache. */ | 642 | /* Store reply in cache. */ |
643 | nfsd_cache_update(rqstp, proc->pc_cachetype, statp + 1); | 643 | nfsd_cache_update(rqstp, rqstp->rq_cachetype, statp + 1); |
644 | return 1; | 644 | return 1; |
645 | } | 645 | } |
646 | 646 | ||