ide: orphan all buffered requests on DMA cancel
commit7cda62087c0baf064486f3d803184c2c3b35c04a
authorPeter Lieven <pl@kamp.de>
Tue, 17 Nov 2015 20:06:29 +0000 (17 15:06 -0500)
committerJohn Snow <jsnow@redhat.com>
Tue, 17 Nov 2015 20:06:29 +0000 (17 15:06 -0500)
tree62a9a6571e233f318ab4428d1d9a76ebc653c118
parent1d8c11d631545ee43aff16b0763aff7181b61f20
ide: orphan all buffered requests on DMA cancel

If the guests canceles a DMA request we can prematurely
invoke all callbacks of buffered requests and flag all them
as orphaned. Ideally this avoids the need for draining all
requests. For CDROM devices this works in 100% of all cases.

Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1447345846-15624-5-git-send-email-pl@kamp.de
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/pci.c