Author: rmacklem
Date: Tue Apr 25 19:35:13 2017
New Revision: 317419
URL: https://svnweb.freebsd.org/changeset/base/317419

Log:
  MFC: r316666
  Fix the NFSv4.1 client for NFSERR_BADSESSION recovery via ReclaimComplete.
  
  For the ReclaimComplete operation, the RPC layer should not loop on
  NFSERR_BADSESSION. If it does, the recovery thread (nfscl) can get stuck
  looping and will not do a recovery.
  This patch fixes it so it does not loop. This bug only affects NFSv4.1 and
  only when a server reboots.

Modified:
  stable/10/sys/fs/nfs/nfs_commonsubs.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/fs/nfs/nfs_commonsubs.c
==============================================================================
--- stable/10/sys/fs/nfs/nfs_commonsubs.c       Tue Apr 25 19:14:31 2017        
(r317418)
+++ stable/10/sys/fs/nfs/nfs_commonsubs.c       Tue Apr 25 19:35:13 2017        
(r317419)
@@ -148,7 +148,7 @@ struct nfsv4_opflag nfsv4_opflag[NFSV41_
        { 0, 0, 0, 0, LK_EXCLUSIVE, 1, 1 },             /* Test StateID */
        { 0, 0, 0, 0, LK_EXCLUSIVE, 1, 1 },             /* Want Delegation */
        { 0, 0, 0, 0, LK_EXCLUSIVE, 0, 0 },             /* Destroy ClientID */
-       { 0, 0, 0, 0, LK_EXCLUSIVE, 1, 1 },             /* Reclaim Complete */
+       { 0, 0, 0, 0, LK_EXCLUSIVE, 1, 0 },             /* Reclaim Complete */
 };
 #endif /* !APPLEKEXT */
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to