Commit ff8141e
committed
NFSD: Skip close replay processing if XDR encoding fails
The replay logic added by commit 9411b1d ("nfsd4: cleanup
handling of nfsv4.0 closed stateid's") cannot be done if encoding
failed due to a short send buffer; there's no guarantee that the
operation encoder has actually encoded the data that is being copied
to the replay cache.
Reported-by: rtm@csail.mit.edu
Closes: https://lore.kernel.org/linux-nfs/c3628d57-94ae-48cf-8c9e-49087a28cec9@oracle.com/T/#t
Fixes: 9411b1d ("nfsd4: cleanup handling of nfsv4.0 closed stateid's")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 4aa1714 commit ff8141e
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5925 | 5925 | | |
5926 | 5926 | | |
5927 | 5927 | | |
5928 | | - | |
5929 | | - | |
| 5928 | + | |
5930 | 5929 | | |
5931 | 5930 | | |
5932 | 5931 | | |
| |||
0 commit comments