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:
parent
86698a12f7
commit
51f7b5b883
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user