From ff5630dff67f4c3a38f2d5f2cc72d3bc7d9c2f4e Mon Sep 17 00:00:00 2001 From: dfr Date: Sat, 10 May 1997 16:12:03 +0000 Subject: Fix a nasty hang connected with write gathering. Also add debug print statements to bits of the server which helped me find the hang. --- sys/nfsserver/nfsrvstats.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'sys/nfsserver/nfsrvstats.h') diff --git a/sys/nfsserver/nfsrvstats.h b/sys/nfsserver/nfsrvstats.h index 59033bf..a3c45bd 100644 --- a/sys/nfsserver/nfsrvstats.h +++ b/sys/nfsserver/nfsrvstats.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs.h 8.4 (Berkeley) 5/1/95 - * $Id: nfs.h,v 1.23 1997/03/27 20:01:03 guido Exp $ + * $Id: nfs.h,v 1.24 1997/03/29 12:34:33 bde Exp $ */ #ifndef _NFS_NFS_H_ @@ -517,6 +517,23 @@ extern int nfsd_head_flag; !bcmp((caddr_t)&(o)->nd_cr, (caddr_t)&(n)->nd_cr, \ sizeof (struct ucred))) +#ifdef NFS_DEBUG + +extern int nfs_debug; +#define NFS_DEBUG_ASYNCIO 1 /* asynchronous i/o */ +#define NFS_DEBUG_WG 2 /* server write gathering */ +#define NFS_DEBUG_RC 4 /* server request caching */ + +#define NFS_DPF(cat, args) \ + do { \ + if (nfs_debug & NFS_DEBUG_##cat) printf args; \ + } while (0) + +#else + +#define NFS_DPF(cat, args) + +#endif int nfs_init __P((struct vfsconf *vfsp)); int nfs_reply __P((struct nfsreq *)); -- cgit v1.1