svn commit: r337923 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Alexander Motin mav at FreeBSD.org
Thu Aug 16 18:44:51 UTC 2018


Author: mav
Date: Thu Aug 16 18:44:50 2018
New Revision: 337923
URL: https://svnweb.freebsd.org/changeset/base/337923

Log:
  Make vfs.zfs.zio.dva_throttle_enabled sysctl writable.
  
  Not sure what I thought originally, but as I see now runtime changes are
  working fine, and the code seems like even designed for this.

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c	Thu Aug 16 18:40:16 2018	(r337922)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c	Thu Aug 16 18:44:50 2018	(r337923)
@@ -83,8 +83,8 @@ const char *zio_type_name[ZIO_TYPES] = {
 };
 
 boolean_t zio_dva_throttle_enabled = B_TRUE;
-SYSCTL_INT(_vfs_zfs_zio, OID_AUTO, dva_throttle_enabled, CTLFLAG_RDTUN,
-    &zio_dva_throttle_enabled, 0, "");
+SYSCTL_INT(_vfs_zfs_zio, OID_AUTO, dva_throttle_enabled, CTLFLAG_RWTUN,
+    &zio_dva_throttle_enabled, 0, "Enable allocation throttling");
 
 /*
  * ==========================================================================


More information about the svn-src-all mailing list