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