]> git.ipfire.org Git - thirdparty/qemu.git/commit
raw-posix: fix bdrv_aio_ioctl
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Jan 2013 14:28:35 +0000 (15:28 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 16 Jan 2013 05:05:45 +0000 (23:05 -0600)
commit204dd38c2da72687848d1a6fd2a81a8eaac6bf78
tree32937ff0154efacc3a6d79913f7cdb90b1e41c3f
parent86bab459489a192486ec0f49e0ef5114ff6554d2
raw-posix: fix bdrv_aio_ioctl

When the raw-posix aio=thread code was moved from posix-aio-compat.c
to block/raw-posix.c, there was an unintended change to the ioctl code.
The code used to return the ioctl command, which posix_aio_read()
would later morph into a zero.  This hack is not necessary anymore,
and in fact breaks scsi-generic (which expects a zero return code).
Remove it.

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit b608c8dc02c78ee95455a0989bdf1b41c768b2ef)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/raw-posix.c