FreeBSD/src 354988csys/fs/nfs nfsrvstate.h nfs_var.h, sys/fs/nfsserver nfs_nfsdport.c nfs_nfsdstate.c

nfsd: Fix the NFSv4.2 pNFS MDS server for NFSERR_NOSPC via LayoutError

If a pNFS server's DS runs out of disk space, it replies
NFSERR_NOSPC to the client doing writing.  For the Linux
client, it then sends a LayoutError RPC to the MDS server to
tell it about the error and keeps retrying, doing repeated
LayoutGets to the MDS and Write RPCs to the DS.  The Linux client is
"stuck" until disk space on the DS is free'd up unless
a subsequent LayoutGet request is sent a NFSERR_NOSPC
reply.
The looping problem still occurs for NFSv4.1 mounts, but no
fix for this is known at this time.

This patch changes the pNFS MDS server to reply to LayoutGet
operations with NFSERR_NOSPC once a LayoutError reports the
problem, until the DS has available space.  This keeps the Linux
NFSv4.2 from looping.

Found during recent testing because of issues w.r.t. a DS
being out of space found during a recent IEFT NFSv4 working
group testing event.

(cherry picked from commit f8dc06303bac39be53872de7429aa54694b3f86a)
DeltaFile
+53-0sys/fs/nfsserver/nfs_nfsdport.c
+51-2sys/fs/nfsserver/nfs_nfsdstate.c
+4-0sys/fs/nfsserver/nfs_nfsdserv.c
+3-0sys/fs/nfsserver/nfs_nfsdsocket.c
+3-0sys/fs/nfs/nfsrvstate.h
+2-0sys/fs/nfs/nfs_var.h
+116-26 files

UnifiedSplitRaw

FreeBSD/src 329377f (r354988)sys/kern kern_timeout.c

cc_ktr_event_name is used only with KTR
DeltaFile
+4-0sys/kern/kern_timeout.c
+4-01 files

UnifiedSplitRaw