Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2015 23:14:40 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287416 - head/sys/kern
Message-ID:  <201509022314.t82NEe7f084490@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Wed Sep  2 23:14:39 2015
New Revision: 287416
URL: https://svnweb.freebsd.org/changeset/base/287416

Log:
  fd: remove UMA_ZONE_ZINIT argument from Files zone
  
  Originally it was added in order to prevent trashing of objects with
  INVARIANTS enabled. The same effect is now provided with mere UMA_ZONE_NOFREE.
  
  This reverts r286921.
  
  Discussed with:		kib

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Wed Sep  2 23:09:01 2015	(r287415)
+++ head/sys/kern/kern_descrip.c	Wed Sep  2 23:14:39 2015	(r287416)
@@ -3833,7 +3833,7 @@ filelistinit(void *dummy)
 {
 
 	file_zone = uma_zcreate("Files", sizeof(struct file), NULL, NULL,
-	    NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE | UMA_ZONE_ZINIT);
+	    NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
 	filedesc0_zone = uma_zcreate("filedesc0", sizeof(struct filedesc0),
 	    NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
 	mtx_init(&sigio_lock, "sigio lock", NULL, MTX_DEF);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509022314.t82NEe7f084490>