FreeBSD/src 5da3882 (r336312)sys/fs/nfs nfs_var.h, sys/fs/nfsclient nfs_clstate.c nfs_clrpcops.c

Shut down the TCP connection to a DS in the pNFS client when Renew fails.

When a NFSv4.1 client mount using pNFS detects a failure trying to do a
Renew (actually just a Sequence operation), the code would simply try
again and again and again every 30sec.
This would tie up the "nfscl" thread, which should also be doing other
things like Renews on other DSs and the MDS.
This patch adds code which closes down the TCP connection and marks it
defunct when Renew detects an failure to communicate with the DS, so
further Renews will not be attempted until a new working TCP connection to
the DS is established.
It also makes the call to nfscl_cancelreqs() unconditional, since
nfscl_cancelreqs() checks the NFSCLDS_SAMECONN flag and does so while holding
the lock.
This fix only applies to the NFSv4.1 client whne using pNFS and without it
the only effect would have been an "nfscl" thread busy doing Renew attempts
on an unresponsive DS.

MFC after:      2 weeks
DeltaFile
+5-5sys/fs/nfsclient/nfs_clstate.c
+4-1sys/fs/nfsclient/nfs_clrpcops.c
+1-0sys/fs/nfs/nfs_var.h
+10-63 files

UnifiedSplitRaw