1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

ioat: When queueing operations, assert the submit lock

Callers should have acquired this lock when they invoked ioat_acquire()
before issuing operations.  Assert it is held.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Conrad Meyer 2015-10-24 23:45:21 +00:00
parent f46011ae19
commit 09f49f249a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289906

View File

@ -641,6 +641,7 @@ ioat_null(bus_dmaengine_t dmaengine, bus_dmaengine_callback_t callback_fn,
flags & ~DMA_ALL_FLAGS));
ioat = to_ioat_softc(dmaengine);
mtx_assert(&ioat->submit_lock, MA_OWNED);
if (ioat_reserve_space_and_lock(ioat, 1) != 0)
return (NULL);
@ -681,6 +682,7 @@ ioat_copy(bus_dmaengine_t dmaengine, bus_addr_t dst,
flags & ~DMA_ALL_FLAGS));
ioat = to_ioat_softc(dmaengine);
mtx_assert(&ioat->submit_lock, MA_OWNED);
if (len > ioat->max_xfer_size) {
ioat_log_message(0, "%s: max_xfer_size = %d, requested = %d\n",