svn commit: r346351 - head/sys/x86/iommu

Konstantin Belousov kib at FreeBSD.org
Tue Sep 3 14:07:26 UTC 2019


Author: kib
Date: Thu Apr 18 14:03:59 2019
New Revision: 346351
URL: https://svnweb.freebsd.org/changeset/base/346351

Log:
  Remove witness warning. dmar_bus_dmamap_create() does not sleep.
  
  Sponsored by:	Mellanox Technologies
  MFC after:	1 week

Modified:
  head/sys/x86/iommu/busdma_dmar.c

Modified: head/sys/x86/iommu/busdma_dmar.c
==============================================================================
--- head/sys/x86/iommu/busdma_dmar.c	Thu Apr 18 14:02:33 2019	(r346350)
+++ head/sys/x86/iommu/busdma_dmar.c	Thu Apr 18 14:03:59 2019	(r346351)
@@ -371,8 +371,6 @@ dmar_bus_dmamap_create(bus_dma_tag_t dmat, int flags, 
 	struct bus_dma_tag_dmar *tag;
 	struct bus_dmamap_dmar *map;
 
-	WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "%s", __func__);
-
 	tag = (struct bus_dma_tag_dmar *)dmat;
 	map = malloc_domainset(sizeof(*map), M_DMAR_DMAMAP,
 	    DOMAINSET_PREF(tag->common.domain), M_NOWAIT | M_ZERO);




More information about the svn-src-head mailing list