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); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"