svn commit: r317355 - head/sys/dev/cxgbe/cxgbei

Alexander Motin mav at FreeBSD.org
Mon Apr 24 08:44:53 UTC 2017


Author: mav
Date: Mon Apr 24 08:44:51 2017
New Revision: 317355
URL: https://svnweb.freebsd.org/changeset/base/317355

Log:
  Use proper alignment constant for uma_zcreate().
  
  Previous code panicked on KASSERT with INVARIANTS enabled.
  
  MFC after:	2 weeks

Modified:
  head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c

Modified: head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
==============================================================================
--- head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c	Mon Apr 24 07:52:44 2017	(r317354)
+++ head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c	Mon Apr 24 08:44:51 2017	(r317355)
@@ -1070,7 +1070,7 @@ icl_cxgbei_mod_load(void)
 	 */
 	prsv_zone = uma_zcreate("Pagepod reservations",
 	    sizeof(struct ppod_reservation), NULL, NULL, NULL, NULL,
-	    CACHE_LINE_SIZE, 0);
+	    UMA_ALIGN_CACHE, 0);
 
 	refcount_init(&icl_cxgbei_ncons, 0);
 


More information about the svn-src-all mailing list