scsi: Assign cancel_io vector for scsi_disk_emulate_ops
commit33325a53f15ab5370e1917b2a11cadffc77c5a52
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jan 2014 09:35:36 +0000 (15 10:35 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jan 2014 09:36:06 +0000 (15 10:36 +0100)
tree503b2aa03f2b2375614da3d6f02b5a9ccd8868af
parent1cf892ca2689c84960b4ce4d2723b6bee453711c
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>
hw/scsi/scsi-disk.c