ioat(4): Assert the submit lock in ioat_submit_single

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2016-10-28 23:53:35 +00:00
parent 05e4cffbb0
commit 5a8af401ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308068

View File

@ -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);