]> git.ipfire.org Git - thirdparty/qemu.git/commit
scsi: Assign cancel_io vector for scsi_disk_emulate_ops
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jan 2014 09:35:36 +0000 (10:35 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 06:34:40 +0000 (00:34 -0600)
commitad0a6444adf5cb21304fddcf594b2bb563cceaf8
tree0326fc0a22c27b9593702c9e1901f5b9985483ae
parent6b7ed87665736c40bc5a001656248698e4402899
scsi: Assign cancel_io vector for scsi_disk_emulate_ops

Some emulated disk operations (MODE SELECT, UNMAP, WRITE SAME)
can trigger asynchronous I/Os.  Provide the cancel_io callback
to ensure that AIOCBs are properly cleaned up.

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
Cc: qemu-stable@nongnu.org
[Tweak commit message. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 33325a53f15ab5370e1917b2a11cadffc77c5a52)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/scsi-disk.c