]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commit
Fix DMA API when handling an immediate error from block layer (Avi Kivity)
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 7 Oct 2009 14:49:32 +0000 (15:49 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 7 Oct 2009 14:49:32 +0000 (15:49 +0100)
commitb0c44fdfc7f9d1656d718aa2fecac4a81f941c8c
tree49ed9f3fa9436f300cb00553f2eac3e7ba083637
parent090a34b30e3de1e573aaa9c966a8096567a7e8a7
Fix DMA API when handling an immediate error from block layer (Avi Kivity)

The block layer may signal an immediate error on an asynchronous request
by returning NULL.  The DMA API did not handle this correctly, returning
an AIO request which would never complete (and which would crash if
cancelled).

Fix by detecting the failure and propagating it.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6893 c046a42c-6fe2-441c-8c8c-71466251a162

[ Backported from 6bbff9a0b495918309074ac60375be5f9dc868b3
  by Stefano Stabellini. ]

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
dma-helpers.c