Skip to content

Commit 9d73aa8

Browse files
committed
[dma] Always keep transfer queue size up to date
1 parent 87cdc58 commit 9d73aa8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Cru/CruDmaChannel.cxx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ void CruDmaChannel::deviceStopDma()
189189
link.queue.front().setReady(false);
190190
mReadyQueue.push_back(link.queue.front());
191191
link.queue.pop_front();
192+
mLinkQueuesTotalAvailable++;
192193
}
193194

194195
if (!link.queue.empty()) {
@@ -197,10 +198,6 @@ void CruDmaChannel::deviceStopDma()
197198
}
198199
}
199200

200-
if (getTransferQueueAvailable()) {
201-
BOOST_THROW_EXCEPTION(Exception() << ErrorInfo::Message("Transfer queue not full when it should be"));
202-
}
203-
204201
log((format("Moved %1% remaining superpage(s) to ready queue") % moved).str());
205202
}
206203

0 commit comments

Comments
 (0)