[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] virtio-blk: Check return value of blk_aio_io
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v2] virtio-blk: Check return value of blk_aio_ioctl |
Date: |
Tue, 17 Feb 2015 15:40:50 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Feb 17, 2015 at 05:55:53PM +0800, Fam Zheng wrote:
> Since commit 1dc936aa84 (virtio-blk: Use blk_aio_ioctl) we silently lose
> the request if blk_aio_ioctl returns NULL (not implemented).
>
> Fix it by directly returning VIRTIO_BLK_S_UNSUPP as we used to do.
>
> Signed-off-by: Fam Zheng <address@hidden>
>
> ---
> v2: Fix the leak of ioctl_req. (Kevin)
> ---
> hw/block/virtio-blk.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
pgpeO8wvCkfPi.pgp
Description: PGP signature