scsi: pass status when completing
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Aug 2011 08:49:06 +0000 (10:49 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 12 Aug 2011 13:27:00 +0000 (08:27 -0500)
commit383a7d3d588c992f304fe479c8fedb539be96c2b
tree3bb4e98871f5fe44a1a3ccb93288548fde22a53b
parent31d989b0c35a3a1c6702c456ecb75abf9e377f7f
scsi: pass status when completing

A small improvement in the SCSI request API.  Pass the status
at the time the request is completed, so that we can assert that
no request is completed twice.  This would have detected the
problem fixed in the previous patch.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/scsi-bus.c
hw/scsi-disk.c
hw/scsi-generic.c
hw/scsi.h