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

Reply via email to