summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-05-19 16:36:05 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-05-19 16:36:05 +0000
commit0dd18224e71fc113ad576bbb090f81bc23f30712 (patch)
tree5b01f16dcb3d59ba11fdda15a01047557ad06526 /sys/nfs/nfs.h
parentfc8845fcb413005968a6519d665a10233ec08348 (diff)
from tsarna@netbsd.org (sysctl changes to come later):
Death to nfsiod! It is replaced by kernel threads that do the same thing. The number of kernel threads used is set with the vfs.nfs.iothreads sysctl.
Diffstat (limited to 'sys/nfs/nfs.h')
-rw-r--r--sys/nfs/nfs.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/nfs/nfs.h b/sys/nfs/nfs.h
index 06c01af9b99..31e7a5b768b 100644
--- a/sys/nfs/nfs.h
+++ b/sys/nfs/nfs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs.h,v 1.7 1998/05/25 09:12:26 deraadt Exp $ */
+/* $OpenBSD: nfs.h,v 1.8 2000/05/19 16:36:03 mickey Exp $ */
/* $NetBSD: nfs.h,v 1.10.4.1 1996/05/27 11:23:56 fvdl Exp $ */
/*
@@ -237,11 +237,13 @@ struct nfsstats {
/*
* fs.nfs sysctl(3) identifiers
*/
-#define NFS_NFSSTATS 1 /* struct: struct nfsstats */
+#define NFS_NFSSTATS 1 /* struct: struct nfsstats */
+#define NFS_NIOTHREADS 2 /* number of i/o threads */
#define FS_NFS_NAMES { \
- { 0, 0 }, \
- { "nfsstats", CTLTYPE_STRUCT }, \
+ { 0, 0 }, \
+ { "nfsstats", CTLTYPE_STRUCT }, \
+ { "niothreads", CTLTYPE_INT } \
}
/*
@@ -253,6 +255,7 @@ struct nfsstats {
* by them and break.
*/
#ifdef _KERNEL
+extern int nfs_niothreads;
struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
@@ -468,5 +471,4 @@ int nfsd_head_flag;
sizeof (struct ucred)))
#endif /* _KERNEL */
-
#endif /* _NFS_NFS_H */