[Qemu-devel] [PATCH 5/8] scsi-disk: don't call scsi_req_complete twice.

2011-11-21 Thread Gerd Hoffmann
In case the guest sends a SYNCHRONIZE_CACHE command scsi_req_complete() is called twice: Once because there is no data to transfer and scsi-disk thinks it is done with the command, and once when the flush is actually finished ... Signed-off-by: Gerd Hoffmann --- hw/scsi-disk.c |5 +++-- 1 f

Re: [Qemu-devel] [PATCH 5/8] scsi-disk: don't call scsi_req_complete twice.

2011-11-21 Thread Paolo Bonzini
On 11/21/2011 02:39 PM, Gerd Hoffmann wrote: > In case the guest sends a SYNCHRONIZE_CACHE command scsi_req_complete() > is called twice: Once because there is no data to transfer and > scsi-disk thinks it is done with the command, and once when the flush is > actually finished ... > > Signed-off