|
@@ -293,7 +293,7 @@ static void __cleanup(struct ioat2_dma_chan *ioat, unsigned long phys_complete)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
ioat->tail += i;
|
|
ioat->tail += i;
|
|
- BUG_ON(!seen_current); /* no active descs have written a completion? */
|
|
|
|
|
|
+ BUG_ON(active && !seen_current); /* no active descs have written a completion? */
|
|
chan->last_completion = phys_complete;
|
|
chan->last_completion = phys_complete;
|
|
if (ioat->head == ioat->tail) {
|
|
if (ioat->head == ioat->tail) {
|
|
dev_dbg(to_dev(chan), "%s: cancel completion timeout\n",
|
|
dev_dbg(to_dev(chan), "%s: cancel completion timeout\n",
|