mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
ioat(4): Assert the submit lock in ioat_submit_single
Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
05e4cffbb0
commit
5a8af401ae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308068
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue