Skip to content

Commit

Permalink
nfsd: fix v4 reply caching
Browse files Browse the repository at this point in the history
Very embarassing: 1091006 "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: [email protected]
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
J. Bruce Fields committed Nov 26, 2012
1 parent 0912128 commit 57d276d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 57d276d

Please sign in to comment.