scsi-generic: Handle canceled request in scsi_command_complete
commit6c25fa6cf8b58db72956e880d76e4adc301bb472
authorFam Zheng <famz@redhat.com>
Wed, 24 Sep 2014 08:27:53 +0000 (24 16:27 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Sep 2014 11:30:51 +0000 (30 13:30 +0200)
tree31c3fb1347d94cc55339df20a80b59795adc2be8
parenteda470e41a753070e057380a9a71e2ad7347f667
scsi-generic: Handle canceled request in scsi_command_complete

Now that we always called the cb in bdrv_aio_cancel, let's make scsi-generic
callbacks check io_canceled flag similarly to scsi-disk.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-generic.c