]> Git Repo - qemu.git/commit - hw/virtio-blk.c
virtio-blk: handle NULL returns from bdrv_aio_{read, write}
authorChristoph Hellwig <[email protected]>
Thu, 13 Aug 2009 14:49:56 +0000 (16:49 +0200)
committerAnthony Liguori <[email protected]>
Fri, 28 Aug 2009 01:30:23 +0000 (20:30 -0500)
commit87b245db05aac9bcdb70a4f0af0fc5f353c5a9f8
tree276c407258d25658da8d2ee2290a1b716825d3a7
parent5c6c3a6c54b23caa84fb4e046e85a461612279bb
virtio-blk: handle NULL returns from bdrv_aio_{read, write}

The bdrv_aio_{read,write} routines can return a NULL pointer when the
I/O submission fails.  Currently we ignore this and will wait forever
for an I/O completion and leading to a hang of the guest.

I can easily reproduce this using the native Linux AIO patch, but it's
also possible using normal pthreads-based AIO.

Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/virtio-blk.c
This page took 0.022832 seconds and 4 git commands to generate.