svn commit: r317418 - stable/11/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Tue Apr 25 19:14:33 UTC 2017
Author: rmacklem
Date: Tue Apr 25 19:14:31 2017
New Revision: 317418
URL: https://svnweb.freebsd.org/changeset/base/317418
Log:
MFC: r316667
Fix the NFSv4 client hndling of a stale write verifier in the Commit operation.
When the NFSv4 client Commit operation encountered a stale write verifier,
it erroneously mapped that to EIO. This could have caused recently written
data to be lost when a server crashes/reboots between an UNSTABLE write
and the subsequent commit. This patch fixes this.
The bug was only for the NFSv4 client and did not affect NFSv3.
Modified:
stable/11/sys/fs/nfsclient/nfs_clport.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/fs/nfsclient/nfs_clport.c
==============================================================================
--- stable/11/sys/fs/nfsclient/nfs_clport.c Tue Apr 25 19:02:34 2017 (r317417)
+++ stable/11/sys/fs/nfsclient/nfs_clport.c Tue Apr 25 19:14:31 2017 (r317418)
@@ -1196,7 +1196,7 @@ nfscl_maperr(struct thread *td, int erro
{
struct proc *p;
- if (error < 10000)
+ if (error < 10000 || error >= NFSERR_STALEWRITEVERF)
return (error);
if (td != NULL)
p = td->td_proc;
More information about the svn-src-all
mailing list