ide: replace blk_drain_all by blk_drain

Target the drain for just one device.

Signed-off-by: John Snow <jsnow@redhat.com>
Reported-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1453225191-11871-5-git-send-email-jsnow@redhat.com
This commit is contained in:
John Snow 2016-02-10 13:29:39 -05:00
parent 86698a12f7
commit 51f7b5b883
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ void ide_cancel_dma_sync(IDEState *s)
#ifdef DEBUG_IDE
printf("%s: draining all remaining requests", __func__);
#endif
blk_drain_all();
blk_drain(s->blk);
assert(s->bus->dma->aiocb == NULL);
}
}