svn commit: r308068 - head/sys/dev/ioat

Conrad E. Meyer cem at FreeBSD.org
Fri Oct 28 23:53:36 UTC 2016


Author: cem
Date: Fri Oct 28 23:53:35 2016
New Revision: 308068
URL: https://svnweb.freebsd.org/changeset/base/308068

Log:
  ioat(4): Assert the submit lock in ioat_submit_single
  
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/dev/ioat/ioat.c

Modified: head/sys/dev/ioat/ioat.c
==============================================================================
--- head/sys/dev/ioat/ioat.c	Fri Oct 28 23:53:33 2016	(r308067)
+++ head/sys/dev/ioat/ioat.c	Fri Oct 28 23:53:35 2016	(r308068)
@@ -1804,6 +1804,8 @@ static void
 ioat_submit_single(struct ioat_softc *ioat)
 {
 
+	mtx_assert(&ioat->submit_lock, MA_OWNED);
+
 	ioat_get(ioat, IOAT_ACTIVE_DESCR_REF);
 	atomic_add_rel_int(&ioat->head, 1);
 	atomic_add_rel_int(&ioat->hw_head, 1);


More information about the svn-src-head mailing list