Make core dumping to ad not to freeze even if interrupts, not disabled

for some reason, stealing our events.
This commit is contained in:
Alexander Motin 2009-02-16 22:25:39 +00:00
parent 3a5733c67b
commit 2e46610e21
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188700

View File

@ -214,7 +214,7 @@ ata_start(device_t dev)
if (dumping) {
mtx_unlock(&ch->state_mtx);
mtx_unlock(&ch->queue_mtx);
while (!ata_interrupt(ch))
while (!ata_interrupt(ch) && ch->running)
DELAY(10);
return;
}