scsi-disk: Complete failed requests in scsi_disk_emulate_command
commit8af7a3ab51d9780f52b7d2581f144ab127097362
authorKevin Wolf <kwolf@redhat.com>
Mon, 25 Oct 2010 10:43:22 +0000 (25 12:43 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 4 Nov 2010 11:52:16 +0000 (4 12:52 +0100)
tree6644961dd743a5f362ed899fb87a861be92bc1bd
parent205ef7961f781496366e0a93a4ec621ad3724bd7
scsi-disk: Complete failed requests in scsi_disk_emulate_command

This pulls the request completion for error cases from the caller to
scsi_disk_emulate_command. This should not change semantics, but allows to
reuse scsi_handle_write_error() for flushes in the next patch.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
hw/scsi-disk.c